Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2005

Tip: Looking for answers? Try searching our database.

Change activeexplorer to non-default folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chuck R - 29 Jul 2005 14:15 GMT
I have created an email folder within my MAPI Mailbox in addition to
the default Inbox, Tasks, Calendar and what not. I have not been able
to find a way through VBA to sucessfully move to that folder. I've
sucessfully moved to the default Inbox or Calendar but not to the email
folder named "Test" using syntax like:

Application.ActiveExplorer.CurrentFolder = _
   Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)

Does anyone have any suggestions or hints that will help me move to a
non-default folder?

Thanx,

Chuck R
Sue Mosher [MVP-Outlook] - 29 Jul 2005 14:21 GMT
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. See http://www.outlookcode.com/d/code/getfolder.htm 
Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>I have created an email folder within my MAPI Mailbox in addition to
> the default Inbox, Tasks, Calendar and what not. I have not been able
[quoted text clipped - 11 lines]
>
> Chuck R
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.