Email body template

Acke

Registered User.
Local time
Today, 01:24
Joined
Jul 1, 2006
Messages
158
I need to use template for mail body to send emails from Access via Outlook.

Templates are being created in Word, or Outlook.

How can I insert external word file contents in email body?

If using external file as template is not possible, can I locate earlier saved Outlook message in Outlook folders and forward it as template?
 
This code will insert external file to email body. Note, procedure must take place only after mail item is set!!!

Code:
Dim objWord As Word.Application   
Dim objdoc As Word.Document
Dim objrange As Word.Range
Dim objInsp As Outlook.Inspector         
                
Set objInsp = Poruka.GetInspector                
Set objdoc = objInsp.WordEditor               
Set objWord = objdoc.Application             
Set objrange = objdoc.Range(Start:=0, End:=0) 
objrange.InsertFile ("YourFilePath\YourFileName"), , , False, False
 

Users who are viewing this thread

Back
Top Bottom