Thread: Run a macro
View Single Post
  #2  
Old July 15th 09, 08:47 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Run a macro

If you restructure your macro to be a subroutine with a MailItem argument,
you can use the "run a script" rule approach or any of the event handlers
described at http://www.outlookcode.com/article.aspx?id=62

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Bre-x" wrote in message
...
I would like to run a macro every time i receive a email
from an especific user

if then
msgbox "You got Mail!"
else
'do nothing
end if

Can it be done?

Thank you all



Ads