![]() |
| 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 | Display Modes |
|
#1
|
|||
|
|||
|
In OL 2003, from a rule, I'm trying to run a script: Sub ClearCategories(ObjMsg As Outlook.MailItem) ObjMsg.Categories = "" ObjMsg.Save End Sub I know that the rule is running, but the Categories are not being cleared. Any idea what I'm doing wrong? Thanks, Don Williams -- donwms http://forums.slipstick.com/ |
| Ads |
|
#2
|
|||
|
|||
|
Is the script being called? Place a MsgBox in that macro to verify that it's
running. -- 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 "donwms" wrote in message ... In OL 2003, from a rule, I'm trying to run a script: Sub ClearCategories(ObjMsg As Outlook.MailItem) ObjMsg.Categories = "" ObjMsg.Save End Sub I know that the rule is running, but the Categories are not being cleared. Any idea what I'm doing wrong? Thanks, Don Williams -- donwms http://forums.slipstick.com/ |
|
#3
|
|||
|
|||
|
I added msgbox to prove that script was being executed. It was, but now the categories are getting cleared. That obviously implies that previously it was not getting executed, but I don't have a clue why. Regardless, it works now; so thanks. Don Williams -- donwms http://forums.slipstick.com/ |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| new mail rule: Clear Categories on mail (recommended) - where did this come from? | Andrew Hamilton | Outlook - General Queries | 3 | May 27th 08 01:26 AM |
| To clear the Open Other User's Folder list & To clear the Find a Contact list | JW | Outlook - General Queries | 1 | January 30th 08 08:19 PM |
| Public folder calender categories vs user calander categories | Help me | Outlook - Calandaring | 5 | November 2nd 07 08:44 AM |
| Outlook 2007 Categories are a combo of Categories & Labels in 2003 | Scott Sherman | Outlook - Calandaring | 0 | February 13th 07 05:23 AM |
| script to clear out categories on incoming emails | gbonawitz@gmail.com | Outlook and VBA | 2 | July 31st 06 08:17 PM |