View Single Post
  #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


Ads