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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Show all defined categories



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 30th 07, 11:40 AM posted to microsoft.public.outlook.program_forms
Noel
external usenet poster
 
Posts: 26
Default Show all defined categories

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  
Old August 30th 07, 04:17 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Show all defined categories

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  
Old August 30th 07, 05:02 PM posted to microsoft.public.outlook.program_forms
Noel
external usenet poster
 
Posts: 26
Default Show all defined categories

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


All times are GMT +1. The time now is 08:55 PM.


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.