G
Gilles LEBRET
Hi,
There is a little problem with Item_send event in OL2003.
Supose you have this code in your vba project :
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
msgbox "Hello"
end sub
You are expected to see "ok" every time you send a email. This code runs
fine when you compose a new mail directly with outlook.
Now, send a file via "Send to -> recipient" : open explorer file. With the
mouse, right-clic on a file and select : "Send to -> recipient"
A new message appears with you file attached. But If you send it, you do not
see "Hello" : Application_ItemSend event is not fired , even if Outlook
is running or not.
This problem do not occurs if a ComAddin is attached to Outlook : the
ComAddin is able to catch
Application_ItemSend when file is sent from explorer (even if Outlook is
running or not).
We would like to understand why a difference exists between VBA and Comaddin
..
Is there any workaround to force VBA to catch event when file is sent from
explorer ?
Thanks
Gilles Lebret
There is a little problem with Item_send event in OL2003.
Supose you have this code in your vba project :
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
msgbox "Hello"
end sub
You are expected to see "ok" every time you send a email. This code runs
fine when you compose a new mail directly with outlook.
Now, send a file via "Send to -> recipient" : open explorer file. With the
mouse, right-clic on a file and select : "Send to -> recipient"
A new message appears with you file attached. But If you send it, you do not
see "Hello" : Application_ItemSend event is not fired , even if Outlook
is running or not.
This problem do not occurs if a ComAddin is attached to Outlook : the
ComAddin is able to catch
Application_ItemSend when file is sent from explorer (even if Outlook is
running or not).
We would like to understand why a difference exists between VBA and Comaddin
..
Is there any workaround to force VBA to catch event when file is sent from
explorer ?
Thanks
Gilles Lebret