Free/busy

S

Semut

Previously Dimitry has pointed out that

by calling

Call Namespace.CreateRecipient, then Recipient.FreeBusy

or in full

Dim myNameSpace As Outlook.NameSpace
Dim myRecipient As Outlook.Recipient
Dim myFBInfo As String
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myRecipient = myNameSpace.CreateRecipient("Nate Sun") '<--- Exchange
user?
On Error GoTo ErrorHandler
myFBInfo = myRecipient.FreeBusy(#11/11/2003#, 60 * 24)
MsgBox myFBInfo
ErrorHandler:
MsgBox "Cannot access the information. "


I would be able to get the freebusy.

But, that is provided that I have Ms Exchange installed. Can i throught MAPI
and the default calendar (without communicating with Exchange), get the Free
Busy time of the current profile default Calendar free and busy instead? Do
i have to manually calculate the free and busy time myself?

thank you.
 
K

Ken Slovak - [MVP - Outlook]

It should work with or without Exchange server. Of course without Exchange
you can't get the information for anyone else.
 
S

Sue Mosher [MVP-Outlook]

Does it? I wouldn't expect it to, since there's no Exchange f/b folder to
query. But I guess someone (Semut?) ought to try it.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
K

Ken Slovak - [MVP - Outlook]

As always, you're correct. I get unable to load free busy information from a
PST file with no free/busy server configured. I suppose if a free/busy
server was configured it would work.
 
S

Semut

thanks for the info.

Ken Slovak - said:
As always, you're correct. I get unable to load free busy information from
a
PST file with no free/busy server configured. I suppose if a free/busy
server was configured it would work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top