A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Which Mailbox is active?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 10th 06, 08:45 AM posted to microsoft.public.outlook.program_vba
M.Subasio
external usenet poster
 
Posts: 1
Default 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!
Ads
  #2  
Old May 11th 06, 12:40 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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!



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook and Active Directory MV Outlook - Installation 0 March 17th 06 12:20 AM
Outlook and Active Directory MV Outlook - General Queries 2 March 15th 06 10:14 PM
Exchange Mailbox server prohibit from sending when reach mailbox size limit Milly Staples [MVP - Outlook] Outlook - General Queries 1 February 24th 06 07:41 PM
Update Active X deango Outlook Express 1 February 2nd 06 12:13 AM
active sync activesync Outlook - Using Contacts 1 January 25th 06 11:53 AM


All times are GMT +1. The time now is 07:37 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-2025 Outlook Banter.
The comments are property of their posters.