The second parameter to the saveas() call is a numeric value. You'll have to look up the one that corresponds to txt.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Desmond Lloyd Sent: Friday, July 18, 2008 12:51 PM To: ProFox Email List Subject: VFP9: Excel Automation/Office 2007 Morning All, Quick question I hope. Need to open an Excel workbook and save it as text. Can startup Excel (not visible), open the workbook, but when I "SaveAS", it says it cannot access the save as property. I used examples right out of "Microsoft Office Automation with Visual Foxro" oExcel = createobject('Excel.application') oworkbook = oExcel.Workbooks.Open('p:\my loc\excel_auto.xls') oWorkbook.saveas('p:\account\GE Cash\test2.txt','TXT') <-------------------Problem child? Any input would be greatly appreciated. TIA, Desmond --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.