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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Create/Populate an Outlook Msg Created from an Outlook Template

Status
Not open for further replies.

CWestII

Programmer
Jan 30, 2004
25
US
To all:
Here is what I did:

Dim olMailItem As Object
Dim strTemplPath As String
Dim myOlApp As Outlook.Application


strTemplPath = "TemplatePath\TemplateName.oft"
Set myOlApp = CreateObject("Outlook.Application")
Set olMailItem = myOlApp.CreateItemFromTemplate(strTemplPath)

'*************************************************'
TemplatePath and TemplateName are just place holders you must specify the actual Name and Path of the template.

After you set the olMailItem variable you can add all your other MailItem attributes (To, Subject, etc.)

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top