Show all defined categories

G

Guest

Hello, I want to custom a form (appointment and task) in this way : when a
new item is created, form inside code open a windows with a ListBox to select
one or more already defined categories (not only standard), or create a new
one. Then, one a this selected categories is specified by the user to be the
master one for this new item, and Windows and MAPI folders are created with
the name of the master category of the new item (for further links). Could
you help me on two points : 1/how to choose between script or VB (I do not
understand how to run VB from a form); 2/how to read all defined categories.
Question is about OutLook 2003 SP2. Thank you.
 
K

Ken Slovak - [MVP - Outlook]

All form code can only be VBScript code. It will only run in forms that are
published. Any VB (I assume you mean VB 6) code can only be run from a COM
addin.

In Outlook 2003 the master category list is stored in the registry. That
entry only contains categories that are different than the default
categories. So you'd have to start with a hard-coded list of the normal
master categories. Then you'd have to read the registry to find any custom
categories (different for any user), then to get any one-off categories if
you want those (only defined in individual items) you'd have to iterate
every item and read the categories from them item by item.
 
G

Guest

Thanks a lot for your quick and clear answer. I'm afraid it is a little bit
too much complicated (and dangerous ...) for me ... I'll try to design
something in an other way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top