Run Macro as Rule

M

MMouse99

Hi,

I have written my VBA (off the web!) which strips off an attachment, how do
I get
this to run as a rule. I need the macro to run when I recieve an email with
a certain subject field.

Many thanks
 
S

Sue Mosher [MVP-Outlook]

this is the format of a VBA procedure that can be invoked from the Outlook
2002/3 "run a script" rule action:

Sub MyProc(MyMail as MailItem)
' your code to work with MyMail
End SUb
 
Top