Auto Fill Outlook template (1 Viewer)

stu_c

Registered User.
Local time
Today, 22:54
Joined
Sep 20, 2007
Messages
489
Hi all
I have a default Email template, I would like to create something in VBA that loads up the Email template, fills out the subject with data from the access form and also inputs data into a certain bookmark section is this possible?
 

stu_c

Registered User.
Local time
Today, 22:54
Joined
Sep 20, 2007
Messages
489
Hello
I have managed to get the template to open and input the subject automaticallyjust struggling to get the bookmarks to work :(

Set myOlApp = CreateObject("Outlook.Application")
Set MyItem = myOlApp.CreateItemFromTemplate("C:\statusrep.oft")
MyItem.Subject = "Status Report"
MyItem.display

I tried
Set bm = oDoc.Bookmarks("BMCustomerName")
bm.Range.Text = "TESTABC"
oWd.Visible = True
 

Users who are viewing this thread

Top Bottom