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

Accessing subfolders with VBA in OL2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 19th 06, 03:16 PM posted to microsoft.public.outlook.program_vba
Catalin
external usenet poster
 
Posts: 15
Default Accessing subfolders with VBA in OL2003

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.

  #2  
Old October 19th 06, 03:44 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Accessing subfolders with VBA in OL2003

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.


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



 




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
subfolders missing Thiago Outlook - Using Contacts 3 October 12th 06 03:58 PM
Subfolders Noiseless Outlook - Using Contacts 6 August 11th 06 01:36 PM
subfolders in inbox Mark Outlook - General Queries 1 July 27th 06 01:09 AM
how to apply vba code to OL2003 forms ? TimR Outlook - Using Contacts 1 February 17th 06 05:41 PM
moving subfolders cookie0924 Outlook - General Queries 6 February 17th 06 03:34 AM


All times are GMT +1. The time now is 09:20 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.