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

Getting Folder name?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old August 6th 07, 01:15 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Getting Folder name?

Just a note on this: In Outlook 2007, delegate folders are cached if they're not opened through a secondary mailbox.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Dmitry Streblechenko" wrote in message ...
You can use Extended MAPI (C++/Delphi only), CDO 1.21 or Redemption to read the PR_MAILBOX_OWNER_ENTRYID property from the folder if the folder if is not cached (it is not in case of a delegate folder). If it is cached, things get a bit more interesting...

plug
You can use RDOFolder.Store.Owner to figure out the owner in case of Redemption

skPrimaryExchangeMailbox = 3
skDelegateExchangeMailbox = 4
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Folder = Session.GetFolderFromID(Application.ActiveExplorer .CurrentFolder.EntryID)
set Store = Folder.Store
if (Store.StoreKind = skPrimaryExchangeMailbox) or (Store.StoreKind = skDelegateExchangeMailbox) Then
MsgBox Store.Owner.Name
End If

/plug

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message ...
Yes, the name of the owner. On screen, it shows "Calendar - Dennis B.", but I don't know how to get that info with the om.

--

Thanks,
Dennis
"Dmitry Streblechenko" wrote in message ...
The folder name will be "Calendar". Do you mean the owner's name?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
If I have 5 shared calendars open across the exchange server, how would I get the name of the folder that has focus at any given time?
If the 5 calendars were Michael P., Dennis B., Kevin S., Winston C., and Fred K., and I'm in Winston C.'s calendar, how would I retrieve that folder's name?

--

Thanks,
Dennis
 




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
Public Folder/Folder Assistant Forwarding email w/o original sender name xtremluck Outlook - General Queries 2 December 20th 06 08:57 PM
activate contact folder from public folder with "show this folder as email address book using a prf file Frankie K. Outlook - Using Contacts 7 July 25th 06 05:37 PM
Calendar folder missing from folder list in outlook 2003 Bill B Outlook - Calandaring 11 July 7th 06 04:44 PM
Create a search folder to look at all emails in one folder and selected criteria in other folders [email protected] Outlook - General Queries 1 April 10th 06 09:40 AM
Junk E-mail folder - is there a way to create a rule to delete items in this folder older than X days? Jaycee Outlook - General Queries 1 February 22nd 06 04:54 PM


All times are GMT +1. The time now is 05:08 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.