On completion of a task, can I email a copy of the task to myself

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

Guest

When I mark a task as completed, I would like a VBA macro to automatically
send an email to me with the details of the task. Is there existing code
that can do this, or can someone help me figure out how?

I would like to customize the subject of the email with the start and end
dates of the completed task.

Thanks,
Richard
 
The ItemChange event of the task folder tells you when an item changes, see
the sample in the VBA help file.

In that event you can check the item's Status property. If it's
olTaskCompleted then create an email with the Createitem function, add your
address via Recipients.Add and write in the subject and body property
whatever you want, e.g. the values of the TaskItem's StartDate and EndDate
properties.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize Outlook email:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Thu, 14 Jun 2007 08:12:01 -0700 schrieb Richard T:
 
Back
Top