task Views

  • Thread starter Thread starter Andy Phillips
  • Start date Start date
A

Andy Phillips

I have several task views I would like to have open when outlook starts. I
currently exit outlook with 4 task windows open each with a different view.
When outlook is reopened the 4 task windows are all open to the same view.
Does anyone have a sample of Vb script I could import that could change the
views at startup for each of these windows. Thanks

Andy
 
You can iterate the Explorers collection in Outlook and use
Explorer.CurrentView = "myView" where "myView" is the name of the view you
want.

Dim oOL As Outlook.Application
Dim oExplorer as Outlook.Explorer
Dim colExplorers As Outlook.Explorers

Set oOL = CreateObject("Outlook.Application")
Set colExplorers = oOL.Explorers
For Each oExplorer In colExplorers
oExplorer.CurrentView = "myVuew"
Next

'set all objects = Nothing here
 
Back
Top