Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How to edit existing categories in OL2007 (http://www.outlookbanter.com/add-ins-outlook/67029-how-edit-existing-categories-ol2007.html)

Christian Havel February 15th 08 03:42 PM

How to edit existing categories in OL2007
 
Hi,

how can I add, removed and edit categories in Outlook 2007?

I see the class "categories" and "category" in the objectcatalog (F2) in the
VBA editor, but I do not know how to initialize the collection object.

Christian

Ken Slovak - [MVP - Outlook] February 15th 08 05:09 PM

How to edit existing categories in OL2007
 
The Categories collection is a member of the NameSpace object in Outlook
2007.

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


"Christian Havel" wrote in
message ...
Hi,

how can I add, removed and edit categories in Outlook 2007?

I see the class "categories" and "category" in the objectcatalog (F2) in
the
VBA editor, but I do not know how to initialize the collection object.

Christian



Christian Havel February 18th 08 07:46 AM

How to edit existing categories in OL2007
 
Hi Ken,

thanks for your response.
I found the Categories collection. But how can I load the Collection?
Something like (VB6):
Dim catCollection as Categories
Set catCollection = ?????.GetCategories ---

Christian

"Ken Slovak - [MVP - Outlook]" wrote:

The Categories collection is a member of the NameSpace object in Outlook
2007.

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


"Christian Havel" wrote in
message ...
Hi,

how can I add, removed and edit categories in Outlook 2007?

I see the class "categories" and "category" in the objectcatalog (F2) in
the
VBA editor, but I do not know how to initialize the collection object.

Christian




Ken Slovak - [MVP - Outlook] February 18th 08 01:45 PM

How to edit existing categories in OL2007
 
If oNS is a NameSpace object then use:

Set catCollection = oNS.Categories

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


"Christian Havel" wrote in
message ...
Hi Ken,

thanks for your response.
I found the Categories collection. But how can I load the Collection?
Something like (VB6):
Dim catCollection as Categories
Set catCollection = ?????.GetCategories ---

Christian




All times are GMT +1. The time now is 12:35 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-2006 OutlookBanter.com