I am trying to connect to the exchange inbox of a specific user and return the date of the most recently received email there. any suggestions? thanks!
As long as you have delegate rights, this may set in the right direction (you'll need to work with it abit though as this is 'off the cuff'):
Code:
Set ol = New Outlook.Application
Set olns = ol.GetNamespace("MAPI")
Set olRecip = olns.CreateRecipient("Users ID")
olRecip.Resolve
Set objInbox = olns.GetSharedDefaultFolder(olRecip, olFolderInbox
Set olItem = objInbox.Messages.GetFirst
You can then loop until you get what you whant.
Good Luck
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.