I am trying to get the "AttachmentAdd" event to fire after adding an attachment to a new mail message. Can someone please tell me what I'm doing wrong?
Here is my code which resides in the "ThisOutlookSession" module:
Private WithEvents objMailItem As Outlook.MailItem
Private Sub Application_Startup()
Dim objMailItem As Outlook.MailItem
End Sub
Private Sub objMailItem_AttachmentAdd(ByVal Attachment As Attachment)
MsgBox "test"
End Sub
When I add an attachment this event does not fire.
Thanks
Roland Thomas
rpthomas@debevoise.com
Here is my code which resides in the "ThisOutlookSession" module:
Private WithEvents objMailItem As Outlook.MailItem
Private Sub Application_Startup()
Dim objMailItem As Outlook.MailItem
End Sub
Private Sub objMailItem_AttachmentAdd(ByVal Attachment As Attachment)
MsgBox "test"
End Sub
When I add an attachment this event does not fire.
Thanks
Roland Thomas
rpthomas@debevoise.com