![]() |
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 |
#5
|
|||
|
|||
![]()
If that's the case Outlook is totally confused. GetDefaultFolder() will
always and only retrieve folders from your default PST file or Exchange mailbox. It cannot retrieve folders from other mail stores that aren't the default. NameSpace.Folders has all your loaded PST files. You can iterate that collection and its subfolders, etc. to find any loaded folder. The pattern looks like this: NameSpace.Folders.Item(1).Folders.Item("Inbox").Fo lders.Item("myInboxSubfolder"), etc. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm wrote in message ... Firstly thank you very much for your quick reply, I really appreciate it! I found out that this solution is almost there but not quite... In my environment I have these Outlook folders: \Personal Folders\ \Personal Folders\Deleted Items \Personal Folders\Drafts \Personal Folders\Inbox \Personal Folders\Junk E-mail \Personal Folders\Sent Items ... \Archive Folders \ \Inbox \Junk E-mail ... The latter is my default data file or whatever it is called. Now Session.GetDefaultFolder(olFolderJunk) points to \Private Folders \Junk E-mail but the REAL Junk E-mail folder (i.e. the one that Outlook uses for this account) is \Junk E-mail How do I find the path to that? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Empty "Junk E-mail" Folder on the shortcut menu GRAYED OUT | TERRY | Outlook - General Queries | 6 | October 30th 07 02:08 AM |
Spam with Exchange junk e-mail setting doesnt goto the "junk e-mail" folder in all cases/people.. 2007/2003 outlook | markm75 | Outlook - General Queries | 3 | October 12th 07 05:48 PM |
Spam with Exchange junk e-mail setting doesnt goto the "junk e-mail" folder in all cases/people.. 2007/2003 outlook | markm75 | Outlook - General Queries | 0 | October 11th 07 10:27 PM |
Empty "Junk E-Mail" folder on menu bar | Rick in NS | Outlook - Installation | 0 | June 8th 07 06:16 PM |
How to unblock items sent to "Junk Email" folder in Outlook Expres | Novice Mom | Outlook - Using Contacts | 2 | May 1st 07 03:40 PM |