Is there a way to get the Folder Path (i.e. "Public Folders/All Public
Folders/FolderName/Sub-FolderName") at execution time? I.e. is there a
built-in variable/constant that denotes this?
In Outlook 2002 and 2003, yes. In earlier versions, you have to walk the
hierarchy up from the folder in question.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Is there a way to get the Folder Path (i.e. "Public Folders/All Public
> Folders/FolderName/Sub-FolderName") at execution time? I.e. is there a
> built-in variable/constant that denotes this?
Bryan Dickerson - 23 Jul 2004 15:14 GMT
How?
> In Outlook 2002 and 2003, yes. In earlier versions, you have to walk the
> hierarchy up from the folder in question.
>
> > Is there a way to get the Folder Path (i.e. "Public Folders/All Public
> > Folders/FolderName/Sub-FolderName") at execution time? I.e. is there a
> > built-in variable/constant that denotes this?
Sue Mosher [MVP-Outlook] - 23 Jul 2004 22:00 GMT
Build the string from each folder's Parent.Name. The sample code for my book
(code downloadable from the link below) has it in listing 19.4.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> How?
>
[quoted text clipped - 4 lines]
> > > Folders/FolderName/Sub-FolderName") at execution time? I.e. is there a
> > > built-in variable/constant that denotes this?