Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00723229
Message ID:
00723232
Views:
8
>hello,
> I am having problem with the following command with micro substitution. Could anyone help me out??
>
> oExcel = createobject('Excel.Application')
> With oExcel.Workbooks.Open(&SOURCE_FILE)
>
>It works find if I substitute "&source_file" with getfile() to open the file everything works. thanks.
>sherry

Sherry, you don't need macro substitution in here.

source_file = "book1.xls"
oExcel.Workbooks.Open(source_file)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform