Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to start Excel with a speific file in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00353059
Message ID:
00353218
Views:
15
There are several methods... You have already been shown how to use the ShellExecute function of the Windows API.

However, if you need to interact with Excel, you will want to use automation:

oExcel = Createobject("excel.application")
oworkbook = oExcel.workbooks.add(Getfile()) && point to an xls file....
oExcel.visible = .t.


>I want to click a buttom to lunch Excel with a excel document which a get from getfile().
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform