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