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

Find calendar time blocks of specified length



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 18th 09, 01:13 AM posted to microsoft.public.outlook.program_vba
wpiet
external usenet poster
 
Posts: 19
Default Find calendar time blocks of specified length

Can someone direct me to a starting point for developing a calendar program
that accepts input of a desired time-block length (e.g. 15 minutes) that will
search the calendar & return available blocks of time of the specified
length? I want to find the 1st available block of that length or longer. If
the user chooses to use that block, I will let them create an appointment, If
not, I want to go to the next available block, etc. I haven't done any
programming related to Calendar, so don't know where to begin. A point in the
right direction will be greatly appreciated.
--
Will
Ads
  #2  
Old February 18th 09, 03:39 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Find calendar time blocks of specified length

For a specific Recipient object you can use the FreeBusy() method, which
takes arguments for start date, minutes per return character and an optional
format argument. For an AddressEntry object you can use the GetFreeBusy()
method which takes the same arguments.

If you supply MinPerChar = 15 that sets a 15 minute free/busy return block.
What you get back is a string that has "0" for each free period and "1" for
each busy/OOF/tentative block.

If you specify True for CompleteFormat you get back more detail where you
get individual values for busy ("2"), tentative ("1"), out of office ("3").
"0" would still be free in that case.

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


"wpiet" wrote in message
...
Can someone direct me to a starting point for developing a calendar
program
that accepts input of a desired time-block length (e.g. 15 minutes) that
will
search the calendar & return available blocks of time of the specified
length? I want to find the 1st available block of that length or longer.
If
the user chooses to use that block, I will let them create an appointment,
If
not, I want to go to the next available block, etc. I haven't done any
programming related to Calendar, so don't know where to begin. A point in
the
right direction will be greatly appreciated.
--
Will


 




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 set time periods in calendar for 20 minute blocks HelpWithCalendarTimeBlocks Outlook - Calandaring 1 September 8th 08 04:12 PM
How do I find out the automatic line wrap length? puntium Outlook - Installation 1 December 10th 07 05:11 PM
Can I color code blocks of time? wvjoe Outlook - Calandaring 2 September 10th 07 08:40 PM
How do you remove the time blocks on the calendar? Janelle Lister Outlook - Calandaring 1 July 21st 06 08:47 PM
Outlook Calendar should change view to time blocks w/o changing zo Chiquita Banana Outlook - Calandaring 0 February 12th 06 06:15 PM


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