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 code for views

Status
Not open for further replies.

MOCSIT

IS-IT--Management
Jul 20, 2005
26
US
I got this from the web. I am trying to create a macro so I can place a shortcut on the toolbar so when I create new folders it will set my custom view. Is there anything wrong with my code? Thanks

Dim objOL As Application
Dim objExp As Explorer
Set objOL = CreateObject("Outlook.Application")
Set objExp = objOL.ActiveExplorer
objExp.CurrentView = Name of my View goes here.
Set objExp = Nothing
Set objOL = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top