To get a non-default folder, you need to walk the folder hierarchy using the Folders collections or use a function that does that for you. For examples, see:

http://www.outlookcode.com/d/code/getfolder.htm - uses a folder path string
http://www.outlookcode.com/codedetail.aspx?id=492 - searches for a folder by name

Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54

"duckofprey" <duckofprey@discussions.microsoft.com> wrote in message news:EFB78AED-13D9-4628-B6C9-DA939926CFE5@microsoft.com...
> Under the Personal Folders in Outlook 2003, I created a folder called "Test"
> How do I pick this folder in VB? This is what I have now:
>
> Dim ns As NameSpace
> Dim oMessagesFolder As MAPIFolder
> ...
> Set oMessagesFolder = ns.GetDefaultFolder(olFolderJunk)
>
> This obviously picks the Junk folder. However, I want it to pick the "Test"
> folder I created.
23 AprHow do I select a specific folder in Outlook?.duckofprey
23 Apr\ Re: How do I select a specific folder in Outlook?.Sue Mosher [MVP-Outlook]
All times are in (US) Eastern Daylight Time (GMT -4:00)