Our Access application, recently migrated from Office 2010 to Office 2016, reads the users Outlook calendar
This had been working for years in Office 2010, and works fine for me in Office 2016 (.accdb copied from network share to local C, however ALL the other users, get the above message at "Set MyApp". Any possible explanations welcome.
Code:
Dim MyApp As Outlook.Application
Dim MyNS As Outlook.Namespace
Dim MyFolder As MAPIFolder
Dim MyItems As Items
Set MyApp = CreateObject("Outlook.Application")
Set MyNS = MyApp.GetNamespace("MAPI")
Set MyFolder = MyNS.GetDefaultFolder(olFolderCalendar) 'find calendar
Set MyItems = MyFolder.Items ' find all appointments
This had been working for years in Office 2010, and works fine for me in Office 2016 (.accdb copied from network share to local C, however ALL the other users, get the above message at "Set MyApp". Any possible explanations welcome.