How do I access multiple (outlook) calendars with VBA?

V

Vijay

Hi,

I have an external calendar configured in Outlook via a calendar plugin.
Using VBA, how do I access this calendar? The following code snippet only
allows me to access the default calendar in Outlook:

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myCalendar = myNameSpace.GetDefaultFolder(olFolderCalendar)

But I have no idea what the API is to access other calendars (or even find
out how many caledars there are, etc.).

Any help would be greatly appreciated.

Thanks in Advance!
 

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