View Single Post
  #2  
Old June 10th 08, 06:10 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Appts automatically different length



See the VBA help file for the ItemAdd event. You might check a new item's
Subject and set the End property accordingly, e.g. add 30 minutes to the
Start property:

Item.End = DateAdd("n", 30, Item.Start)
Item.Save

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool:
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 9 Jun 2008 14:20:00 -0700 schrieb pdberger:

Good afternoon --
I'd like to set up Outlook so that it knows that a particular appt/service
scheduled will take a particular length of time. That is, if I schedule
myself for a haircut, it'll take only 30 minutes (for the obvious
male-pattern reasons). However, if I schedule myself for psychotherapy,
it'll take about 2 hours (again, the obvious male-pattern reasons...).

I'd
like to not have to remember to enter those times, so that I don't get
scheduled for a 2-hr haircut or a 30-minute psych session.

I already asked in Calendaring; I've written a bit of VBA code for Excel,
and wonder if there's already a feature or code I can start from.

TIA

Ads