Hi,
I need to run Excel macro from my VFP program and I have this code:
oX=CreateObject("EXCEL.APPLICATION"
oX.Visible=.T.
oX.Workbooks.Open("C:\Folder1\WIP.xls"
oX.Run macro1
macro1 is the name of the macro
The last line gives me syntax error!(I tried with oX.Run "macro1"
My question is how to run macro and how to set reference to excel object to Nothing?
Thanks in advance,
Lyn
I need to run Excel macro from my VFP program and I have this code:
oX=CreateObject("EXCEL.APPLICATION"
oX.Visible=.T.
oX.Workbooks.Open("C:\Folder1\WIP.xls"
oX.Run macro1
macro1 is the name of the macro
The last line gives me syntax error!(I tried with oX.Run "macro1"
My question is how to run macro and how to set reference to excel object to Nothing?
Thanks in advance,
Lyn