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

Make category field required for tasks



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th 07, 08:28 PM posted to microsoft.public.outlook.program_vba
Murphybp2
external usenet poster
 
Posts: 26
Default Make category field required for tasks

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  
Old November 8th 07, 09:18 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Make category field required for tasks

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  
Old November 9th 07, 07:34 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Make category field required for tasks



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


All times are GMT +1. The time now is 08:56 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.