Hi All,

I'm brand new to VBA, i'm trying to find a way of running a macro when an email arrives. I cant find any rule actions which allow you to run scripts (which i believe was removed in later versions for security reasons).

How would I have a macro run every time an email arrives? I understand Outlook will always need to be open for this to even be a possibility but i'm not sure what needs to be added to the test macro below so it runs every time a new email comes in.

Sub SayHello()
MsgBox "Hello World!"
End Sub

thanks.