Extracting appointments from shared Outlook calendar to Excel

后端 未结 3 1590
挽巷
挽巷 2021-01-24 06:55

I am trying to extract appointments from a shared Outlook calendar to Excel using a VBA macro in Excel. The code fails whether I try to define objOwner and

3条回答
  •  天涯浪人
    2021-01-24 07:46

    You have to change:

    Set olFolder = olNS.GetSharedDefaultFolder(objOwner, olFolderCalendar)

    with this :

    Set olFolder = olNS.GetDefaultFolder(9)

提交回复
热议问题