![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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. -- Noel |
#2
|
|||
|
|||
![]()
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. -- 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 "Noel" wrote in message ... 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. -- Noel |
#3
|
|||
|
|||
![]()
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. -- Noel "Ken Slovak - [MVP - Outlook]" wrote: 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. -- 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 "Noel" wrote in message ... 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. -- Noel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
All Categories do not show up in Shared Contacts | AdminSolver | Outlook - Using Contacts | 1 | June 20th 07 05:33 PM |
Show categories on O-2007 Contact form? | Jonathan | Outlook - Using Contacts | 0 | January 10th 07 01:24 AM |
view categories doesn't show all categories | Carole | Outlook - Using Contacts | 4 | January 6th 07 04:31 AM |
How can I show categories? | Russ Valentine [MVP-Outlook] | Outlook - Using Contacts | 4 | December 15th 06 12:48 AM |
contacts assigned to categories do not show up in the summary | omoaustria | Outlook - Using Contacts | 1 | March 7th 06 04:09 AM |