Useing outlook forms

  • Thread starter Thread starter Raymond
  • Start date Start date
R

Raymond

Hi

How do I code in VBA a statement to says use myemail.oft and not the
default outlook form.

Greetings Raymond
 
Dim oMail As Outlook.MailItem
Dim oApp As Outlook.Application

' Not needed in Outlook VBA, just use Application there
Set oApp = CreateObject("Outlook.Application")
Set oMail = oApp.CreateItemFromTemplate("<oft file path, name>")
 
Take a look at the Application.CreateItemFromTemplate method. It takes the
path to the .oft file as an argument.
 
Back
Top