Run Macro as Rule

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top