I am trying to launch code when a new mail item is received in outlook and am struggling. There is not much documentation that I can find but here is what I have so far:
I plan on replacing "You have mail!" with some real code, so please don't tell me I don't need VBA to do this. I do need VBA to do what I want to do, but I need the code to fire when I receive new mail. Right now nothing happens.
Any help appreciated.
Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
"What version of URGENT!!! are you using?
Code:
Private Sub Application_ItemReceive(ByVal Item As Object, Cancel As Boolean)
MsgBox "You have Mail!"
End Sub
I plan on replacing "You have mail!" with some real code, so please don't tell me I don't need VBA to do this. I do need VBA to do what I want to do, but I need the code to fire when I receive new mail. Right now nothing happens.
Any help appreciated.
Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
"What version of URGENT!!! are you using?