Ahh.. I misread the original post. Are you getting a specific error or is it a general COM error? (Did you use AERROR?)
If you try the same steps within Excel, do you get a dialog or error message?
What version were you using before 2010?
>Yes.
>
>>Did you install the 32 bit version of Office?
>>
>>>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?
>>>
>>>Thanks!
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer