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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open an Outlook 2000 folder in VB

Status
Not open for further replies.

Ham

Technical User
Feb 23, 2000
122
US
I want to open a specific folder in Outlook 2000 from VB 6. I have used the following code to successfully open the Inbox folder:

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderInbox)

But, I can't find a way to open another folder. Does anyone have some ideas?

Thanks for the help. -- Ham Rutledge
 
try
Code:
Set myFolder =  myNameSpace.Folders("Personal Folders").Folders("Your FolderName")
 
That worked. Thank you very much. -- Ham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top