View Single Post
 
Old 10-26-2018, 05:08 AM
MarkAtTheBeach MarkAtTheBeach is offline Windows 10 Office 2016
Novice
 
Join Date: Oct 2018
Posts: 6
MarkAtTheBeach is on a distinguished road
Default Reading msgs from specific inbox

Am trying to read email from Outlook. In VBA, I create an outlook session, then read the inbox with:


oSession.logon()
oInbox = oSession.GetDefaultFolder(6)


But if the user has more than one account, cannot figure how I can get the inbox for a specific account just using the email address or the account name.


Any help greatly appreciated,
Mark
Reply With Quote