Make category field required for tasks

  • Thread starter Thread starter Murphybp2
  • Start date Start date
M

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.
 
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.
 
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:
 
Back
Top