I have often used OLE and Word in my application, sending commands to run macro's in Word, which works very well.
oWord := TOleAuto():New("Word Application")
.....
oWord:Run("Macro")Now, I try to use the same syntax to run a macro in Outlook.
oOutLook  := CreateObject("Outlook.Application")
oNameSpace := oOutlook:GetNameSpace("MAPI")
...
oOutlook:Run("Macro")Unfortunately, this always returns an error "Error Outlook Application/0 S_OK: Run".
What is the exact syntax to use macros for Outlook in FWH ?
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