Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating VFP from Excel
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00898688
Message ID:
00898701
Views:
17
>How do I create a macro in Excel to run a program in VFP?
>Thanks
>Steve

Are you asking how to create a macro, or what the commands are to run VFP as an automation server. I've never created macros in Excel, so I can't help you there. If you want to use VFP as an automation server, you need to define a class as OLEPUBLIC in VFP. Then you instantiate it by saying:
ox = CreateObject("FOXOLE.MyClass")
See the "Creating Automation Servers" topic in the online help for details.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform