How to clear categories

Status
Not open for further replies.

donwms

Member
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
 
K

Ken Slovak - [MVP - Outlook]

Is the script being called? Place a MsgBox in that macro to verify that it's

running.

"donwms" <donwms.3urlrm@no-spam.invalid> wrote in message

news:donwms.3urlrm@no-spam.invalid...

> 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
> https://forums.slipstick.com/
>
 

donwms

Member
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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K clear categories on Exchange 2003 & Outlook 2003 Exchange Server Administration 1
R Clear one category when another is chosen Outlook VBA and Custom Forms 1
C-S-R How to clear an Outlook (To Do) Task Flag? Using Outlook 8
B Clear Offline Items (Mail Folder) via VBA Outlook VBA and Custom Forms 1
mikolajek Macro to clear flags? Using Outlook 2
L Clear Offline (Task) Items using VBA Outlook VBA and Custom Forms 0
M Clear custom date field after recurrence Outlook VBA and Custom Forms 0
Diane Poremsky Clear Outlook's Most Recently Used lists Using Outlook 0
Z Cannot change Clear Day (stationery) theme font Using Outlook 3
B Is there a way to make a clear button on custom form? Outlook VBA and Custom Forms 1
D Code to clear certain fields in Outlook Form Outlook VBA and Custom Forms 7
S BCM Not Able to Complete Task - Window won't Clear BCM (Business Contact Manager) 1
P How to add a column named categories when searching in Outlook Using Outlook 0
S Folder Pane Colour Categories Using Outlook 6
Ken Pascoe Outlook Categories Quick List Using Outlook 0
R Assign Categories "Round Robin" style but in a shared mailbox but on specific emails only Outlook VBA and Custom Forms 8
O Calendar - appointment templates and categories Using Outlook 1
T Increasing the number of items that appear on the Categories list Using Outlook 2
Y Outlook 2013 Stop Outlook from automatically assigning categories to Tasks Using Outlook 0
D Assign categories to outgoing emails Outlook VBA and Custom Forms 0
Z How to show concatenated categories in list task view? Using Outlook 2
D Importing Outlook Categories from another domain (Exchange 2016/Outlook 2016) Using Outlook 4
S Conditional formatting problem with "is not empty" and categories Using Outlook 2
A Outlook macro to create search folder with mail categories as criteria Outlook VBA and Custom Forms 3
P how to remove unwanted PST file default categories assigned to many calendar entries Using Outlook 7
P Import Categories from Outlook 2003 Using Outlook 8
A Outlook reverse categories Outlook VBA and Custom Forms 1
Mark Foley Color Categories on IMAP mail lost when installing new Windows 7 workstation Using Outlook 12
B VBA Macro for assigning multiple Categories to an email in my Inbox Outlook VBA and Custom Forms 1
P Task Categories Using Outlook 2
I categories for outgoing email Outlook VBA and Custom Forms 7
S Appointment-Cannot set Categories because ConversationID is not set Outlook VBA and Custom Forms 1
M Using conditional formatting on a shared calendar with categories Using Outlook 6
S Appointment colour categories disappear Using Outlook 4
Z Outlook.com Contact categories Using Outlook 8
A Are categories still recommended for creating local distribution lists? Using Outlook 3
Diane Poremsky Using Categories for Dynamic Distribution Lists Using Outlook 0
Diane Poremsky Printing Calendars with Color Categories Using Outlook 0
avant-guvnor Outlook 2016 and views, categories etc. Using Outlook 3
T categories in Outlook 2016 Using Outlook 0
makinmyway How to Easily/Quickly Ungroup by Categories Using Outlook 1
C Printing tasks with multiple categories Using Outlook 5
Mark Foley Where are Outlook categories save for IMAP? Using Outlook 12
M Trouble using keyboard shortcut for color categories in Outlook 2016 Using Outlook 3
T Outlook 2007 adding categories Using Outlook 15
E Outlook 2013 is stripping out categories on sent meeting invites Using Outlook 0
Karlski Deselecting categories often takes 3+ attempts Using Outlook 3
A Keep color categories when saving vCards Using Outlook 1
Diane Poremsky How to Upgrade to Color Categories Using Outlook 0
K Missing Categories & Colors Using Outlook 5

Similar threads

Top