Volodymyr Bobko
Posts: 36
Joined: 2008-05-08
|
Hi
How can I programmatically add/remove outlook category. And assign/unassign created category to some outlook item. I need solution compatible with outlooks (2000,2002,2003,2007)
Thanks in advance |
|
Andrei Smolin
Add-in Express team
Posts: 18830
Joined: 2006-05-11
|
Hi Volodymyr,
Use the Categories property of any Outlook item (MailItem, TaskItem, etc.). The reference states:
Returns or sets a String representing the categories assigned to the Microsoft Outlook item. Read/write.
Andrei Smolin
Add-in Express Team Leader |
|
Eugene Astafiev
Guest
|
Hi Volodymyr,
Outlook keeps the list of categories in the following registry hive:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Categories
You can customize this list on your own adding categories and then use any custom category in your code.
|
|