![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |