![]() |
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 |
#7
|
|||
|
|||
![]()
ok, copy , pasted below into the editor module, run "macro" from VBA and
outlook and nothing happens, sorry I put in in a module and a design module and neither work. "Ken Slovak - [MVP - Outlook]" wrote: Sub RunRuleDeleteSpam() Application.Session.DefaultStore.GetRules.Item("De lete Spam").Execute End Sub -- 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 "DLGolfs" wrote in message ... OK here is what I did, the rules name is Delete spam: Sub RunRuleDeleteSpam() Application.Session.DefaultStore.GetRules.Item "Delete Spam.Execute" End Sub When I try to run it I get a run time error, The operation failed. An object cannot be found. There is a number too. I have the rule set up as Delete spam then I made some changes and here is the string: Sub RunRuleDeleteSpam() Application.Session.DefaultStore.GetRules.Item Delete Spam.Execute End Sub now I am getting a syntax error I am trying, never did this in the past, please be patient ![]() . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2007 rule won't start a macro | Dmitry Sotnikov | Outlook and VBA | 1 | August 1st 08 04:57 PM |
Create a Macro in Outlook | Bert | Outlook and VBA | 10 | July 2nd 08 08:32 PM |
Run macro through rule | Flash08 | Outlook - General Queries | 2 | December 20th 07 04:16 PM |
create Macro, Outlook 2007 - create is grayed out | Dave Horne[_2_] | Outlook - General Queries | 2 | November 4th 07 09:45 AM |
Create a macro that runs from a Rule | CF_business_analyst | Outlook and VBA | 8 | January 13th 06 05:12 PM |