How do I add a script to a rule in Outlook?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When setting a rule on my E-mails in outlook, I could add a script to be run
automatically. the list of scripts is Empty, I used VBScript Editor to create
a macro then tryed to add it to thelist but I couldn't...I don't find any
option to do it!!!

Thank you
 
Hi Karim,

in VBA your code needs to look like this:

Sub YourCode(oMail as MailItem)
' ...
End SUb
 
Thanks a lot man
That's what I am looking for

Michael Bauer said:
Hi Karim,

in VBA your code needs to look like this:

Sub YourCode(oMail as MailItem)
' ...
End SUb
 
Back
Top