I'm using outlook and alf + F11 brings up the VBA
In their I have access to ThisOutlookSession. I wanted to popup a msgbox("hello world") when I recieved a new mail.
I assumed this went into:
What do I need to do to get that popup evertime I get a new mail? I'd like to be able to close outlook and for it to save (its only going to be on my local machine)
I think I've to compile it and save it to be a saved macro (how?) plus I've to get it to start every time a new outlook opens.
In their I have access to ThisOutlookSession. I wanted to popup a msgbox("hello world") when I recieved a new mail.
I assumed this went into:
Code:
Private Sub Application_NewMail()
MsgBox ("hello world")
End Sub
What do I need to do to get that popup evertime I get a new mail? I'd like to be able to close outlook and for it to save (its only going to be on my local machine)
I think I've to compile it and save it to be a saved macro (how?) plus I've to get it to start every time a new outlook opens.