Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook macro - folder specification - follow up

Status
Not open for further replies.

Rocroc

Technical User
Sep 3, 2001
8
0
0
GB
G'day - further to my earlier postings I have narrowed down the problem now - I use the following code to specify a folder AAA UNDER the inbox:

Set objApp = CreateObject("Outlook.Application")
Set MyNameSpace = objApp.GetNameSpace("MAPI")
Set MyFolder = MyNameSpace.GetDefaultFolder(olFolderInbox)
Set MyNewFolder = MyFolder.Folders("AAA")
Set objSelection = objApp.ActiveExplorer.Selection

I need to specify a (non-default) folder AAA which is alongside the Inbox, not beneath it - how do I do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top