Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Automate a Task in Outlook using a template

COM and Automation

How to Automate a Task in Outlook using a template

by  Mike Gagnon  Posted    (Edited  )
myOlApp = CreateObject("Outlook.Application")
myItem = myOlApp.CreateItemFromTemplate("C:\Task.oft")
WITH myItem
.DueDate = "9/20/2002"
.Body ="Template Test"
.SubJect = "Hello Template test"
.Status = 1 && In Progress
.Assign
.Recipients.Add("me@somewhere.com")
* .Send && This will send the task to the recipient(s)
endwith
myItem.Display && This is only use to show you what it look like. In Automation you would remove this line


Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top