Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel problem after installing Office 2010??
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01554079
Message ID:
01554126
Views:
81
This message has been marked as the solution to the initial question of the thread.
>This was working for me until I installed Office 2010...
>
>tlcExcelFileName = GETFILE('xls')
>oExcelObject = CREATEOBJECT('Excel.Application')
>oExcelWorkbook = oExcelObject.Application.Workbooks.Open(tlcExcelFileName)
>oExcelWorkbook.ActiveSheet.UsedRange.EntireColumn.AutoFit()
>oExcelWorkbook.Save
>oExcelObject.Quit()
>oExcelObject = NULL
>
>
>...now it's giving me an error when it gets to the oExcelWorkbook.save() line.
>
>Any ideas?

Try adding the parens after Save:

oExcelWorkbook.Save()

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform