Automatically Purging Completed Tasks

O

Orion Cochrane

I would like to know if there is a way that a task can be deleted once
completed. I already have a filter that hides completed tasks, but they'll
build up over time. Ideally, I would like to click the Complete field to mark
it completed, and have the task automatically deleted. If I can get a prompt
before deleting, that would be excellent.

This is probably more of a VBA question, but I thought I would try here
first, as I am only familiar with Excel VBA programming.

TIA
 
M

Michael Bauer [MVP - Outlook]

That's possible with VBA. You can adapt this example, which assigns a
category to a completed task:
http://www.vboffice.net/sample.html?mnu=2&pub=6&smp=52&cmd=showitem&lang=en

After checking for the Status property, and instead of assigning the
category, just call Task.Delete.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Tue, 6 Oct 2009 09:30:01 -0700 schrieb Orion Cochrane:
 
O

Orion Cochrane

Is there a way to permanently purge these completed tasks as opposed to
moving them to the Deleted Items folder? Something like a Shift+Delete
operation.

Thanks.
 
M

Michael Bauer [MVP - Outlook]

If you use the Redemption (www.dimastr.com), that's easier. With Outlook you
have to monitor the ItemAdd event of the Deleted Items folder, and there
delete incoming items once again.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Tue, 6 Oct 2009 12:44:01 -0700 schrieb Orion Cochrane:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top