View Single Post
  #3  
Old October 20th 06, 03:45 PM posted to microsoft.public.outlook.program_vba
Catalin
external usenet poster
 
Posts: 15
Default Accessing subfolders with VBA in OL2003

Thank you very much!
You have been very helpful.

Best regards,
Catalin


"Ken Slovak - [MVP - Outlook]" wrote:

Loop through the NameSpace.Folders collection. Those are your top level
folders for each PST file. Check for a specific name or even a subfolder's
name to get into the correct store.

If the PST you want is say NameSpace.Folders.Item(2) then to get at various
subfolders of that you would use:

NameSpace.Folders.Item(2).Folders

to get at the subfolders.

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


"Catalin" wrote in message
...
Dear all,

I have 3 POP3 email accounts and 3 .pst files, one for each account.
I tried to create a macro to strips attachments from emails which are
previously moved to one of the .pst files.

My problem is that I do not know how to access subfolders from a file
which
is not the default email delivery location.

For example: default location is Work2006.pst and I need to reach to a
subfolder within Sales2006.pst

Thanks very much in advance for your kind support.



Ads