Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Better way to code Excel automation?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01313820
Message ID:
01349968
Views:
26
Hi Chuck,

I see. Sorry, I misunderstood and thought you're trying the opposite. The way I would approach this is to save the file in XLS format:
ox = CreateObject("Excel.application")
ox.Workbooks.Open(FullPath("myfile.xlsx"))
ox.ActiveWorkbook.SaveAs("myfile.xls",39)
ox.ActiveWorkbook.Close()
Import From myfile.xls type xl8 sheet "sheet2"
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform