I don't use the Outlook Bar - code for travelling to a folder?

  • Thread starter Thread starter StargateFan
  • Start date Start date
S

StargateFan

I've not used the Outlook Bar is years because even with the small
icons, it's way too big and takes up too much valuable space! But no
doubt that it provided a very useful function even if I can't use it
anymore.

Was wondering what the VB code is to travel to a folder? I could then
create a toolbar that would act like the OB and put any folder I'd
like to get to quickly on it. Then each item would have a folder icon
and a tooltip reference to the folder name.

Thanks.
 
To get a default folder, use the Namespace.GetDefaultFolder method. 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

Once youi have the folder as a MAPIFolder object, say objFolder, use this
code to navigate to it in the current Outlook window:

Set Application.ActiveExplorer.CurrentFolder = objFolder
 
Back
Top