View Single Post
  #2  
Old November 20th 06, 08:45 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to get the root folder of the select store

NameSpace.Folders. Iterate that collection, that will give you the top of
each loaded store.

NameSpace.GetDefaultFolder(olFolderInbox).Parent is also the top of store of
the default store. No Explorer needed for that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Peter Marchert" wrote in message
ups.com...
Hello,

I`m searching for a method to get the root folder from the actual store
(for example "\\Personal Folders") without using an explorer.

Now I use "Outlook.ActiveExplorer.FolderPath" to get the root folder
from this path with an own function. But my function does not work if
there is no ActiveExplorer :-(

How can I do that?

Peter

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung


Ads