![]() |
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
|
|||
|
|||
![]()
I would like to make the category field required for every task that I
create. If I try and save a task without populating the category, I want the category select box to display. I'm thinking I need to do this in VBA, but I'm not sure how to. Any suggestions, and code samples would be appreciated. |
Ads |
#2
|
|||
|
|||
![]()
You could do a custom task form and make that your default and set a
validation formula on the categories field that fails if the contents are blank. That won't pop up the categories selection dialog but it will prevent closing the item with no categories. In VBA code you'd need to monitor for Item.Close in every open task item and check for categories, if none are there use item.ShowCategoriesDialog() to pop up the dialog and cancel the Close. -- 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 "Murphybp2" wrote in message ups.com... I would like to make the category field required for every task that I create. If I try and save a task without populating the category, I want the category select box to display. I'm thinking I need to do this in VBA, but I'm not sure how to. Any suggestions, and code samples would be appreciated. |
#3
|
|||
|
|||
![]() In addition to Ken, if you add new tasks directly in the table view then you also have to track the folder's ItemAdd event. And to have it complete, you shoud also track any changes because it could happen that you accidently delete a category. If you don't want to create the solution yourself, you might try Category Manager (see link in my signature). It allows to set for every item type (except notes) to get a reminder, e.g. if you try to close a task without that a category is assigned. You can also be forced to assign categories. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Synchronize Color Categories & Ensure that Every Item Gets Categorized: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am 8 Nov 2007 11:28:09 -0800 schrieb Murphybp2: I would like to make the category field required for every task that I create. If I try and save a task without populating the category, I want the category select box to display. I'm thinking I need to do this in VBA, but I'm not sure how to. Any suggestions, and code samples would be appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Required Attendee field not imported from csv file | rapetersen | Outlook - Calandaring | 0 | March 16th 07 06:49 PM |
To export tasks with certain category | nash | Outlook - Using Contacts | 3 | February 8th 07 01:26 PM |
How can I make Subject: box entry required? | David Grana | Outlook - Installation | 5 | April 27th 06 12:15 AM |
can I color code tasks with a category or otherwise make subcatego | Arthur | Outlook - Using Contacts | 1 | April 24th 06 01:37 AM |
How to set due date for a Category of Tasks? Or set any field that applies to the whole category? | [email protected] | Outlook - Calandaring | 1 | February 4th 06 09:23 PM |