![]() |
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
|
|||
|
|||
![]()
Outlook 2007
..NET 3.5 with VS2008. In outlook manually i can create a rule which looks like below. I am looking for a code sample which can do the same. Rule is :- "Apply this rule after message arrives with "ABC" in the subject reply using "c:\users\xxxxxx...\Templates\STDReply.oft" and delete it" if via code its not possible, then I am looking for some code, which can help me to import the Rule file containing above rule. Any Directions, Clue, Code Sample/ Hit will help. Note: I had a looked at Outlook.Rule object, but I could not found my solution. Regards |
Ads |
#2
|
|||
|
|||
![]()
Yes, it's possible, using the Outlook.Rule object, which is documented in
detail he Overview http://msdn.microsoft.com/en-us/library/bb206763.aspx Rule Conditions http://msdn.microsoft.com/en-us/library/bb206766.aspx Rule Actions including olRuleActionTemplate and olRuleActionDelete http://msdn.microsoft.com/en-us/library/bb206764.aspx -- -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JIGNESH" wrote: Outlook 2007 .NET 3.5 with VS2008. In outlook manually i can create a rule which looks like below. I am looking for a code sample which can do the same. Rule is :- "Apply this rule after message arrives with "ABC" in the subject reply using "c:\users\xxxxxx...\Templates\STDReply.oft" and delete it" if via code its not possible, then I am looking for some code, which can help me to import the Rule file containing above rule. Any Directions, Clue, Code Sample/ Hit will help. Note: I had a looked at Outlook.Rule object, but I could not found my solution. Regards |
#3
|
|||
|
|||
![]()
Hi Sue,
On Page http://msdn.microsoft.com/en-us/library/bb206764.aspx The Table says.. olRuleActionTemplate is NOT supported when creating new rules programmatically. So what is the work around for this. Is there any code sample on this? Regards "Sue Mosher [MVP]" wrote: Yes, it's possible, using the Outlook.Rule object, which is documented in detail he Overview http://msdn.microsoft.com/en-us/library/bb206763.aspx Rule Conditions http://msdn.microsoft.com/en-us/library/bb206766.aspx Rule Actions including olRuleActionTemplate and olRuleActionDelete http://msdn.microsoft.com/en-us/library/bb206764.aspx -- -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JIGNESH" wrote: Outlook 2007 .NET 3.5 with VS2008. In outlook manually i can create a rule which looks like below. I am looking for a code sample which can do the same. Rule is :- "Apply this rule after message arrives with "ABC" in the subject reply using "c:\users\xxxxxx...\Templates\STDReply.oft" and delete it" if via code its not possible, then I am looking for some code, which can help me to import the Rule file containing above rule. Any Directions, Clue, Code Sample/ Hit will help. Note: I had a looked at Outlook.Rule object, but I could not found my solution. Regards |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create a macro in Outlook to run a rule | DLGolfs | Outlook and VBA | 32 | March 30th 10 03:17 PM |
forcing a rule when opening outlook via code | thomas donino | Outlook and VBA | 1 | November 23rd 09 05:35 PM |
is it possible to create a dynamic rule in outlook? | Christopher J. Amatulli | Outlook - Using Forms | 8 | October 29th 08 09:47 AM |
how do I create an import spec in Outlook to import Access calend. | Cory | Outlook and VBA | 1 | May 8th 07 05:25 PM |
How can I create a rule in Outlook 03 to Bcc to a Distribution lis | BC | Outlook - Installation | 1 | January 31st 06 06:02 PM |