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

Enumerate Outlook categories



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 16th 09, 08:56 PM posted to microsoft.public.outlook.program_vba
Mueller-Lynch Thomas
external usenet poster
 
Posts: 6
Default Enumerate Outlook categories

We would like to have a dropdown box with all the categories (master and
personal) of Outlook within our forms application written in VB.net

We know that there is a difference between OL 2003 and OL 2007. Nevertheless
the app should enumerate die categories in both versions.

Of course we don't want to loop through all items to get all the categories
(to store them within an array).

Is there a way to get them easily?
Thanks
Thomas

  #2  
Old February 16th 09, 11:10 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Enumerate Outlook categories

You would use the Categories collection and iterate that in Outlook 2007 and
read the registry for the master list in earlier versions (if it exists). In
addition to the master list you have to account for default categories in
earlier versions.

One-off categories only in items would have to be iterated on an item by
item basis.

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


"Mueller-Lynch Thomas" wrote
in message ...
We would like to have a dropdown box with all the categories (master and
personal) of Outlook within our forms application written in VB.net

We know that there is a difference between OL 2003 and OL 2007.
Nevertheless
the app should enumerate die categories in both versions.

Of course we don't want to loop through all items to get all the
categories
(to store them within an array).

Is there a way to get them easily?
Thanks
Thomas


 




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
Enumerate Outlook categories Mueller-Lynch Thomas Outlook - Using Forms 1 February 13th 09 12:50 PM
enumerate exchange email accounts spareway Add-ins for Outlook 3 January 25th 08 05:44 PM
Enumerate Outlook items in mailbox using MAPI Greg J Outlook and VBA 5 March 20th 07 06:16 PM
Outlook 2007 Categories are a combo of Categories & Labels in 2003 Scott Sherman Outlook - Calandaring 0 February 13th 07 04:23 AM
Outlook-Categories-Print labels by categories jazzed4life Outlook - Using Contacts 3 March 21st 06 10:08 AM


All times are GMT +1. The time now is 10:39 AM.


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.