![]() |
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 have certain rules defined in my outlook. I want to write a VBA code with
which the rule should be applied after the mail is read by user. e.g. If I have set up a rule that when a mail arrives in my inbox, the mail should be moved to a specific folder. In the normal case, mail will be moved to the folder as soon it arrives in my inbox. Is it possible with the help VBA, that if user has read the mail, then only it should be moved to the folder? Thanks in advance. |
Ads |
#2
|
|||
|
|||
![]()
What version of Outlook?
For Outlook 2003 and earlier you'd have to write the code for that yourself, you can't use a rule for that unless you disable it from running automatically and then manually run the rule. For Outlook 2007 you could access the Rules collection from VBA code using Store.GetRules(). Once you locate the rule you want you can call its Execute() method. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Dinesh Patil" wrote in message ... I have certain rules defined in my outlook. I want to write a VBA code with which the rule should be applied after the mail is read by user. e.g. If I have set up a rule that when a mail arrives in my inbox, the should be moved to a specific folder. In the normal case, mail will be moved to the folder as soon it arrives in my inbox. Is it possible with the help VBA, that if user has read the mail, then only it should be moved to the folder? Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Making email item 'Read' programmatically | Dinesh Patil | Outlook and VBA | 1 | March 3rd 08 02:17 PM |
Applying rules to msg's from hotmail | Stephen | Outlook - General Queries | 1 | June 7th 07 08:22 AM |
? Automatically Applying Rules to Sent Messages | Alec S. | Outlook Express | 2 | August 29th 06 06:13 PM |
Rules and New Item Alerts in Outlook | [email protected] | Outlook - General Queries | 2 | June 20th 06 01:16 PM |
Read contents of Note inserted in Outlook Contact Item Body | JPL | Outlook and VBA | 4 | June 5th 06 08:19 PM |