Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Which Mailbox is active? (http://www.outlookbanter.com/outlook-vba/14261-mailbox-active.html)

M.Subasio May 10th 06 08:45 AM

Which Mailbox is active?
 
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.Na me 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

---------------------------------------------------------------------------------------------
Svizzerland is nice!

Dmitry Streblechenko May 11th 06 12:40 AM

Which Mailbox is active?
 
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

"M.Subasio" wrote in message
...
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.Na me
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

---------------------------------------------------------------------------------------------
Svizzerland is nice!





All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com