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

Create appointment skipping weekends and within a timeframe



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 31st 09, 05:19 PM posted to microsoft.public.outlook.program_vba
GLHEC-BLS
external usenet poster
 
Posts: 5
Default Create appointment skipping weekends and within a timeframe

I am using Outlook 2003. I am writing a macro and part of what it is suppose
to do is set up an appointment one day and two hours from the "Now" time. The
thing I can't figure out is how to get the appointment to skip weekends and
only set the time within the timeframe of 11 a.m. to 8 p.m. Here is what I
have that will make the appointment one day and two hours from now. Any help
is greatly appreciated!

' Set start time for one day and two hours from now...
olAppt.Start = Now() + (1#) + (2# / 24#)
 




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
How do I create an appointment for someone else? Mike Outlook - Calandaring 2 October 28th 08 09:34 PM
can create new appointment?? message pop up Jay Wang Outlook - Calandaring 1 January 23rd 08 01:11 PM
Calendar multiple day events - skipping weekends. 68 Camaro Outlook - Calandaring 1 December 6th 07 03:04 PM
Can't create new appointment John Outlook - Calandaring 2 February 5th 07 10:56 PM
Eliminating Weekends Programmatically in Recurring Appointment clarkel Outlook and VBA 3 February 7th 06 11:22 PM


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