Question about OLE, Word, Outlook and macros
Posted: Wed Sep 09, 2009 3:35 pm
Hello,
I have often used OLE and Word in my application, sending commands to run macro's in Word, which works very well.
Now, I try to use the same syntax to run a macro in Outlook.
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.
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
oWord := TOleAuto():New("Word Application")
.....
oWord:Run("Macro")
Code: Select all
oOutLook := CreateObject("Outlook.Application")
oNameSpace := oOutlook:GetNameSpace("MAPI")
...
oOutlook:Run("Macro")
What is the exact syntax to use macros for Outlook in FWH ?
Thanks a lot in advance for any help.