I have often used OLE and Word in my application, sending commands to run macro's in Word, which works very well.
- Code: Select all Expand view
- oWord := TOleAuto():New("Word Application")
.....
oWord:Run("Macro")
Now, I try to use the same syntax to run a macro in Outlook.
- Code: Select all Expand view
- 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.