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 :
WINWORD.EXE LETTER.DOC /MMACRO
Because I don't know the exact path of WINWORD.EXE, I want to use ShellExecute()
So I tried this code :
ShellExecute(,"Open","LETTER.DOC","/MMACRO",,3)The document is opened in Word, but the macro MACRO is not executed, although the 4th position is ment to add parameters.
What can I do to execute the macro in an automatic way ?
Thanks a lot in advance for any help.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773