I want to open a Word document without using OLE.
But I also want a macro to be executed.
Normally for opening a document and executing a macro MACRO you do :
Because I don't know the exact path of WINWORD.EXE, I want to use ShellExecute()WINWORD.EXE LETTER.DOC /MMACRO
So I tried this code :
Code: Select all
ShellExecute(,"Open","LETTER.DOC","/MMACRO",,3)
What can I do to execute the macro in an automatic way ?
Thanks a lot in advance for any help.