General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only