T
Tom
Hi,
I've written a small code inside ThisOutlookSession to do things when
sending mails.
It works fine, except when I use File/'Send to' inside other office apps :
the Event is not raised !
I've tried dozen of methods and workarounds, but the Application_ItemSend is
never called when sending mails from other applications.
However, with OutlookSpy (http://www.dimastr.com/outspy/), when showing the
Application Brower's Event Log, I can see the ItemSend() Event when I send
an Email from Excel.
I'm sure there is a way, but I can't find It. Do you have clues ?
My code sample (very simplified) :
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
MsgBox ("Hello !!")
End Sub
Thanks,
Thomas.
I've written a small code inside ThisOutlookSession to do things when
sending mails.
It works fine, except when I use File/'Send to' inside other office apps :
the Event is not raised !
I've tried dozen of methods and workarounds, but the Application_ItemSend is
never called when sending mails from other applications.
However, with OutlookSpy (http://www.dimastr.com/outspy/), when showing the
Application Brower's Event Log, I can see the ItemSend() Event when I send
an Email from Excel.
I'm sure there is a way, but I can't find It. Do you have clues ?
My code sample (very simplified) :
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
MsgBox ("Hello !!")
End Sub
Thanks,
Thomas.