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

Appts automatically different length



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 9th 08, 11:20 PM posted to microsoft.public.outlook.program_vba
pdberger
external usenet poster
 
Posts: 6
Default Appts automatically different length

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

 




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
default meeting length lynseyk Outlook - Calandaring 7 January 15th 10 10:05 PM
Message length shakey Outlook Express 4 April 28th 08 12:42 AM
How do I stop recurrence from attaching appts automatically RJB Outlook - Calandaring 7 January 24th 07 10:31 PM
Display appointment length jag Outlook - Calandaring 0 December 6th 06 06:31 PM
How to validate character length Bruce Manley Outlook - Using Forms 1 May 16th 06 04:53 PM


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