Obtain the file path (*.pst) of the Namespace

S

Semut

Hello, I would to get the PST path of my default personal folders MAPIFolder
through VBA, how to go about?


thanks
 
E

Eric Legault [MVP - Outlook]

There are two methods:

1) Use CDO 1.21 to obtain the PR_ENTRYID property of the root folder in the
..pst; the file path is embedded in the binary value.

2) Use the registry; see:

Outlook - How to get in code the filenames of your Outlook Personal Folder
pst files: http://www.fabalou.com/Outlook/GetPSTFileNames.asp
 
Top