Which Mailbox is active?

M

M.Subasio

Hello,
I have my own Mailbox and i open additional other Mailboxes in Outlook 2000.
I have to know in which Mailbox im Working.
I've tried the Application.ActiveExplorer.CurrentFolder.Parent.Name command.
But if im in a second subfolder i don't get the mailboxname.
Is there a command to read the mailboxname of the active folder?
Thanks for every help.
M.Subasio
 
D

Dmitry Streblechenko

You just need to keep going up the parent chain until you hit the root
folder of the mailbox.
Also note that assuming that the root folder starts with "Mailbox - " will
fail in Outlook versions other than English.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Top