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
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