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

How to get the root folder of the select store



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 20th 06, 07:52 PM posted to microsoft.public.outlook.program_vba
Peter Marchert
external usenet poster
 
Posts: 208
Default How to get the root folder of the select store

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
  #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


  #3  
Old November 20th 06, 09:27 PM posted to microsoft.public.outlook.program_vba
Peter Marchert
external usenet poster
 
Posts: 208
Default How to get the root folder of the select store

Hello Ken,

thank you for your answer.

But how can I only get the store which is selected?

For example: There is profile with 3 pst-files:
"Personal Folders1"
"Personal Folders2"
"Personal Folders3"

"Personal Folders1" is the default store. The user has selected the
second store "Personal Folders2". Now I want to know wihch store he has
selected.

Peter

Ken Slovak - [MVP - Outlook] schrieb:

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


  #4  
Old November 20th 06, 10:40 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

The user can't select a store unless there's a UI. If there's a UI there's
an Explorer.

Default store I told you how to get.

--
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 Ken,

thank you for your answer.

But how can I only get the store which is selected?

For example: There is profile with 3 pst-files:
"Personal Folders1"
"Personal Folders2"
"Personal Folders3"

"Personal Folders1" is the default store. The user has selected the
second store "Personal Folders2". Now I want to know wihch store he has
selected.

Peter


  #5  
Old November 21st 06, 09:45 AM posted to microsoft.public.outlook.program_vba
Peter Marchert
external usenet poster
 
Posts: 208
Default How to get the root folder of the select store


Ken Slovak - [MVP - Outlook] schrieb:

The user can't select a store unless there's a UI. If there's a UI there's
an Explorer.


Not all the time. In some cases there is a problem with a folder and if
so there is no explorer. In this case there is shown a message like
"This folder cannot be shown" (translated from German) on a grey
background.

This case I would handle by my error handler.

Is this possible?

Peter

--
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 Ken,

thank you for your answer.

But how can I only get the store which is selected?

For example: There is profile with 3 pst-files:
"Personal Folders1"
"Personal Folders2"
"Personal Folders3"

"Personal Folders1" is the default store. The user has selected the
second store "Personal Folders2". Now I want to know wihch store he has
selected.

Peter


  #6  
Old November 21st 06, 03:53 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

There's still at least one Explorer, even if it's not showing a folder in a
specific store. Otherwise the user couldn't select a thing.

In the case you mention I don't know of a way to get what folder was
selected that caused the error.

--
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
ps.com...

Ken Slovak - [MVP - Outlook] schrieb:

The user can't select a store unless there's a UI. If there's a UI
there's
an Explorer.


Not all the time. In some cases there is a problem with a folder and if
so there is no explorer. In this case there is shown a message like
"This folder cannot be shown" (translated from German) on a grey
background.

This case I would handle by my error handler.

Is this possible?

Peter


  #7  
Old November 21st 06, 04:59 PM posted to microsoft.public.outlook.program_vba
Peter Marchert
external usenet poster
 
Posts: 208
Default How to get the root folder of the select store

Ok, thank you Ken.

Peter

Ken Slovak - [MVP - Outlook] schrieb:

There's still at least one Explorer, even if it's not showing a folder in a
specific store. Otherwise the user couldn't select a thing.

In the case you mention I don't know of a way to get what folder was
selected that caused the error.

--
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
ps.com...

Ken Slovak - [MVP - Outlook] schrieb:

The user can't select a store unless there's a UI. If there's a UI
there's
an Explorer.


Not all the time. In some cases there is a problem with a folder and if
so there is no explorer. In this case there is shown a message like
"This folder cannot be shown" (translated from German) on a grey
background.

This case I would handle by my error handler.

Is this possible?

Peter


 




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
IE6 'Store Folder' ... Jim Hughes Outlook Express 4 November 8th 06 04:41 AM
IMAP folders not appearing in root folder TomS Outlook Express 0 October 28th 06 07:08 AM
store folder in outlook express charlie Outlook Express 2 August 6th 06 07:10 AM
how to REG update Root Store? light_wt Outlook Express 7 June 7th 06 10:47 PM
Store folder changes loses original folder iag Outlook Express 5 January 10th 06 12:49 PM


All times are GMT +1. The time now is 07:11 AM.


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.