Try this.
loExcel = CreateObject('Excel.Application')
loBook = loExcel.ActiveWorkBook
loExcel.Workbooks.Open(lcFileName)
The Open needs to be set to a workbook object.
Let me know if this works or if you need anything else pertaining to VFP and VBA
Darren
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