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

Read and write master categories list



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 12th 07, 02:38 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default Read and write master categories list

Hi,

I need to read the Outlook master categories and write an new entry to
the list. It appear the master categories stored in registry
(HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\ Outlook\Categories).
Is this correct for the OL 2003 onwards? BTW, my solution will have
prerequisite to OL 2003.

How can I read and write the categories list. I am using the
redemption and can not see anything in there which simplify. Anyway so
far I have the following code but the value I get is decimal....

-----------------------------------
string categories = string.Empty;

RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microso ft
\Office\11.0\Outlook\Categories", false);
if (key != null)
{
try
{
byte[] holder = (byte[])key.GetValue("MasterList");
for (int x = 0; x holder.Length; x++)
{
categories = categories + holder[x].ToString();
}
}
finally
{
key.Close();
}
}

----------------------------------

Thanks in advance for your help.

Regards,
MA
  #2  
Old December 12th 07, 06:46 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Read and write master categories list



For OL XP and 2003 it's stored in HEX values.

For OL 2000 it's plain text; and for OL 2007 it's not stored in the registry
but in a hidden message in the default calendar.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 11 Dec 2007 17:38:18 -0800 (PST) schrieb MA:

Hi,

I need to read the Outlook master categories and write an new entry to
the list. It appear the master categories stored in registry
(HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\ Outlook\Categories).
Is this correct for the OL 2003 onwards? BTW, my solution will have
prerequisite to OL 2003.

How can I read and write the categories list. I am using the
redemption and can not see anything in there which simplify. Anyway so
far I have the following code but the value I get is decimal....

-----------------------------------
string categories = string.Empty;

RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microso ft
\Office\11.0\Outlook\Categories", false);
if (key != null)
{
try
{
byte[] holder = (byte[])key.GetValue("MasterList");
for (int x = 0; x holder.Length; x++)
{
categories = categories + holder[x].ToString();
}
}
finally
{
key.Close();
}
}

----------------------------------

Thanks in advance for your help.

Regards,
MA

 




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
Programming custom Categories into Master Categories List John E. Outlook - Using Forms 3 March 30th 09 12:06 PM
Backup / Export Color Categories Master List J R Oakley Outlook - Installation 17 December 7th 07 10:35 PM
how to ADD a set of categories to a Master Category List Pieter9691 Outlook - Calandaring 2 August 3rd 07 04:52 PM
Limit to Categories in master List Jack Outlook - General Queries 0 October 7th 06 04:08 PM
master list of categories and labels [email protected] Outlook - Using Contacts 2 September 21st 06 01:48 PM


All times are GMT +1. The time now is 09:28 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.