How do I write a macro to delete the completed tasks in Outlook?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to automate the process of deleting the completed tasks in Outlook.
Has anyone done this before?
 
Am Tue, 25 Oct 2005 18:05:02 -0700 schrieb sand_vg:

You could use the Application_Startup event, i.e. the code is running if
Outlook starts. Use then GetDefaultFolder(olFolderTasks) to get the task
default folder. With the Restrict function you can then retrieve a list of
completed tasks, the filter is: "[Complete] = '-1'"

Loop through the result backwards and call each item´s Delete method.
 
Back
Top