Outlook automation with template

P

Perico

I have a visual basic form and want to open a mailitem file based on an Outlook "oft" template that will be sent. How do I open a mailItem that would be based on a template

This is the code I have so far and I'm not sure if I should use the createItem when a template is involved

Private Sub cmdSend_Click(
Dim myOLApp As Outlook.Applicatio
Set myOLApp = CreateObject("Outlook.Application"

Dim myItem As Outlook.MailIte
Set myItem = myOLApp.CreateItem(olMailItem

myItem.Display
 

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