Useing outlook forms

R

Raymond

Hi

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

Greetings Raymond
 
K

Ken Slovak - [MVP - Outlook]

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>")
 
S

Sue Mosher [MVP]

Take a look at the Application.CreateItemFromTemplate method. It takes the
path to the .oft file as an argument.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top