A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to clear categories



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 3rd 09, 10:23 PM posted to microsoft.public.outlook.program_vba
donwms
external usenet poster
 
Posts: 1
Default How to clear categories


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  
Old July 6th 09, 04:08 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to clear categories

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  
Old July 8th 09, 01:12 PM posted to microsoft.public.outlook.program_vba
donwms[_2_]
external usenet poster
 
Posts: 1
Default How to clear categories


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 Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 [email protected] Outlook and VBA 2 July 31st 06 08:17 PM


All times are GMT +1. The time now is 04:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.