![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am trying to get a vba sub to run when new messages arrive but I am not
having any luck. I have setup a Sub something like this in a separate module within project 1: Sub DoNewMail(MyMail as MailItem) msgbox MyMail.Subject 'Other stuff parsed while I'm trying to get this to run. end sub I have set the rule on Outlook to run a script, and have chosen Project1.DoNewMail as the script to run for all messages received. When a new email arrives, the code doesn't run. Any ideas on why this isn't running? Thanks |
Ads |
#2
|
|||
|
|||
![]()
Does other VBA code run? Have you checked the basics at http://www.outlookcode.com/d/vbabasics.htm?
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Jcobb" wrote in message ... I am trying to get a vba sub to run when new messages arrive but I am not having any luck. I have setup a Sub something like this in a separate module within project 1: Sub DoNewMail(MyMail as MailItem) msgbox MyMail.Subject 'Other stuff parsed while I'm trying to get this to run. end sub I have set the rule on Outlook to run a script, and have chosen Project1.DoNewMail as the script to run for all messages received. When a new email arrives, the code doesn't run. Any ideas on why this isn't running? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calendar - 'Run a script' | henry | Outlook - Calandaring | 1 | August 28th 06 09:34 PM |
'Run a script' to open Current Calendar item | henry | Outlook - Using Forms | 1 | July 19th 06 11:29 PM |
Rule 'run a script' not running my script | [email protected] | Outlook and VBA | 3 | May 30th 06 01:09 PM |
Script Not run in outlook 2003 | Joey | Outlook and VBA | 4 | May 19th 06 03:10 PM |
"Run a script" rule triggers but script does not execute | Trey Shaffer | Outlook and VBA | 7 | April 8th 06 12:34 AM |