VBA, Outlook, Seeing 'People's Calendars

前端 未结 3 1489
野趣味
野趣味 2020-12-18 11:37

I am tring to programmatically (with VBA) to access calendars others share with me. They are listed in my Outlook under \'People\'s Calendars.\' I have searched the Web for

3条回答
  •  [愿得一人]
    2020-12-18 12:29

    Just a suggestion to help people who may be trying to use the ShowOtherUserCalFolders() code posted here. This code will create multiple hidden instances of outlook which if run many times can eventual bog down your machine. Instead of creating a new Outlook.application you can call the current open one (outlook must be open for this to work).

    To do this replace Dim objOL As Outlook.Application with Dim objOL as Object and Set objOL = Application with Set myOlApp = GetObject(, "Outlook.Application")

    Also make sure you close the objExpCal Explorer as this will also create a hidden instance of outlook, add objExpCal.Close to the end of your code.

提交回复
热议问题