Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

log on to outlook mailbox as a user, find latest message date

Status
Not open for further replies.
Jun 28, 2001
30
US
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

Everybody body is somebodys Nutter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top