Always use Tasks, not Outlook's To-Do List

Last reviewed on September 11, 2014   —  3 comments

Dave offers this solution for Outlook users who want to open the Task module to a task list, instead of the To-Do list.

I have my Tasks set up in Tasks. I do not use the To-Do List. My Tasks are in Tasks, and I am constantly selecting that list to view, but Outlook thinks it should default back to the To-Do List, which is not where my Tasks are. How do I stop this from happening?

Task listOur usual recommended solution is to create a custom view that includes only tasks and/or only tasks from a specific Tasks folder. This VBA solution does the same thing, by selecting a specific Task folder when you open the Task navigation module.

To use, add the following code to the top of the VB Editor's ThisOutlookSession.

To test the macro without restarting Outlook, click in the Application_Startup sub and click the Run button. Go back to Outlook, select the To-do folder then switch to Mail, then back to Tasks. The Tasks folder in the My Tasks section will be selected.

Macro to Use a Task Folder by Default

Open the VBA Editor using Alt+F11 and paste the following code in ThisOutlookSession. Click in the Startup sub and press Run to test it.

The index number in the following line controls which folder is selected when you switch to the Task Folder. This selects this second folder in the list. For example, to always use my "New Stuff" folder in the screenshot above, I'd change the index number to 5.
Set objNavFolder = objGroup.NavigationFolders.Item(2)

You'll need to sign the macro when you are done testing it or set Outlook's macro security to allow unsigned macros.

Dim WithEvents objPane As NavigationPane
 
Private Sub Application_Startup()
    Set objPane = Application.ActiveExplorer.NavigationPane
 
End Sub
 
 
Private Sub objPane_ModuleSwitch(ByVal CurrentModule As NavigationModule)
  Dim objModule As TasksModule
  Dim objGroup As NavigationGroup
  Dim objNavFolder As NavigationFolder
 
 If CurrentModule.NavigationModuleType = olModuleTasks Then
     Set objModule = objPane.Modules.GetNavigationModule(olModuleTasks)
     Set objGroup = objModule.NavigationGroups("My Tasks")

' Change the 2 to start in a different folder
     Set objNavFolder = objGroup.NavigationFolders.Item(2)
     objNavFolder.IsSelected = True
  End If
  Set objNavFolder = Nothing
  Set objGroup = Nothing
  Set objModule = Nothing
 End Sub

Use with any Navigation Module

You can use this macro with any navigation pane module by changing the 4 instances of "Tasks" to the appropriate module, folder type, or Group name.

ModuleDim as Module TypeModule Type NameDefault Group Name
TasksTasksModuleolModuleTasksMy Tasks
CalendarCalendarModuleolModuleCalendarMy Calendars
ContactsContactsModuleolModuleContactsMy Contacts
NotesNotesModuleolModuleNotesMy Notes
JournalJournalModuleolModuleJournalMy Journals

Use the code with other modules

Written by

Diane Poremsky
A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Please post long or more complicated questions at Outlookforums.

3 responses to “Always use Tasks, not Outlook's To-Do List”

  1. Chris Drake

    This works great as long as you are staying in the same window. If, however, you are in, say, your Mail view, and in the navigation pane you RIGHT CLICK on Tasks and choose open in new window, then when the new window opens it will be defaulted to the dreaded To-Do List, not your Tasks even though the macro works if you just click on Tasks and let it open in the current window.

  2. neumatist

    I had a very similar experience to Chris Drake - so be warned. Worked fine for one session in Outlook (regardless of whether I shifted between 'mail' / 'calendar', etc. views), but it reverted back to the 'To Do List' as default as soon as I came out of Outlook and then reopened it. Pity.

  3. Andrew Gansler (@agansler)

    Awesome, works perfectly, thanks for curing a minor, but persistent headache!

Leave a Reply

If the Post Coment button disappears, press your Tab key.