Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Export
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00425832
Message ID:
00425902
Views:
20
>How would you open an existing Excel spreadsheet and then save it again. The only way I could get the spreadsheet to open was by the Workbooks object which does not have a SaveAs function.

ox=create('excel.application')
ox.Workbooks.Open('c:\my documents\myfile.xls')
ox.Visible=.t.
* munge the data, then
ox.ActiveWorkbook.Save or
ox.ActiveWorkbook.Close(.t.)
ox.quit
release ox
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform