switch view to Tasks pane

  • Thread starter Thread starter sumGirl
  • Start date Start date
S

sumGirl

Hey all. Can someone post a script that will switch an already running
instance of outlook from the folder that is being displayed to the
Tasks folder? Outlook version 11 is what I am running.
-thanks
 
Outlook VBA code:

Sub SwitchToTasks()
Set tasks = Application.Session.GetDefaultFolder(olFolderTasks)
Set Application.ActiveExplorer.CurrentFolder = tasks
End Sub

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top