setting calendar object

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

In a VB program, I have inherited, the following line
appears

set dfdcalendar = olns.GetSharedDefaultFolder(del,
olFolderCalendar)

The problem is the del is the recipients mail box and I
would like to be able to set the dfdcalendar to a folder
item. I have the code which does get the proper folder
item but have not been able to set dfdcalendar to the item
with any success.

I need to use the dfdcalendar because it is used to
reference the calendar in many places through out the
remainder of the program

thanks
barry
 
What do you mean by "a folder item"?

What you have is the correct syntax for returning the Calendar folder from another user's mailbox as a MAPIFolder object, assuming del is a valid Recipient, you have a reference to Outlook in your VB project, and you have Read permission on the target Calendar folder.

What error message or other symptom are you seeing?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 
Sorry, but I don't understand what you mean by "recognize the calendar is from a folder."
 
Instead of using the GetSharedDefaultFolder I want to be
able to point the set dfdcalendar to a specific folder.
The del is a mail box from the global address list and I
would like to substitute a folder.

thanks
-----Original Message-----
Sorry, but I don't understand what you mean by "recognize
the calendar is from a folder."
 
To get a non-default folder, the folder must be visible in your folder list through your having added it to your Outlook profile's Exchange Server service. Any folder in the folder list can be returned by walking the folder hierarchy or using code like that at http://www.slipstick.com/dev/code/getfolder.htm to traverse the hierarchy for you.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top