Hi Guy's
I have this code working however only if Outlook is open. I know that I need to create a On Error Handler and some VBA to open Outlook when it's not running.
Can anyone please help or point me in the right direction. Many thanks
I have this code working however only if Outlook is open. I know that I need to create a On Error Handler and some VBA to open Outlook when it's not running.
Can anyone please help or point me in the right direction. Many thanks

Dim myOlApp As Outlook.Application
Dim myitem As Outlook.MailItem
Dim n As Integer
Dim sUsername As String
sUsername = Environ$("username")
Dim filesPath As String
Set myOlApp = CreateObject("Outlook.Application")
filesPath = Environ$("USERPROFILE")
Set myitem = myOlApp.CreateItemFromTemplate("Template.msg")
With myitem
For n = 0 To Me.EmailList.ListCount - 1
.Attachments.Add (Me.EmailList.ItemData)
Next n
.Display
myitem.Subject = Nz("")
myitem.To = Nz(Me.txtCustomerEmailAddress1)
myitem.Display