;348674']Does it make a difference if you move the code from the module
to
ThisOutlookSession? (Don't forget to edit the rule, too.)
If not, set a breakpoint (f9) on the first line of code. Does the code
execution stopps there when a new message arrives?
--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en
Am Fri, 7 May 2010 10:47:41 +0100 schrieb DarrenD:
-
Hi
i've never created a script before and hope i have done it correctly
i opened ToolMacroVisual Basic Editor
inserted a new module
copied in
Public Sub Whatever(Mail As Outlook.MailItem)
Mail.Subject = Date & " " & Mail.Subject
Mail.Save
End Sub
and saved
then in ToolsRules and Alerts and created a new rule
Apply this rule after the message arrives
on this machine only
run Project1.Whatever
i ran it on my inbox an sent myself an email and nothing happens
im on office outlook 2003 SP2
many thanks
Darren-