I am currently using Windows 7, Outlook 2010 with Exchange MAPI accounts. Several users have their personal account + several generic accounts (some with full access, some read only) The users execute a macro in VBA to connect to a specific mail adress/account to read check the incoming mails from the inbox on different criteria.
This code snipet connects to the MAPI Account and sets the folder to the inbox of a mail account:
Dim ns As Outlook.NameSpace
Dim Inbox As Outlook.Folder
Set ns = GetNamespace("MAPI")
Set Inbox = ns.Folders.Item("jon.doe@example.com").Folders("Inbox")
Now the IT decided to upgrade their servers to Exchange 2016.
Those account will not use MAPI
. IT said they now use REST API
.
I suppose that's why I now receive this error message, when executing the code above with Outlook and Exchange 2016 and now Windows 10.
I found online several solutions, but all of them need Visual Studio + Addins/Libraries. I want to do this with VBA and also connect to a mail account and inbox, so without Visual Studio, C#.
Best regards
Janko