Good afternoon, All.
I have created VBA code below with the help of an online tutorial however despited having exactly the same code, my route doesn't run.
Dim olapp As Outlook.Application
Dim olemail As Outlook.MailItem
Dim olInsp As Outlook.Inspector
Dim wddoc As Word.Document
Set olapp = New Outlook.Application
Set olemail = olapp.CreateItem(olMailItem)
.BodyFormat = olFormatRichText
.To = *** Email address is removed for privacy ***
.Subject = "Movies Report"
Set olInsp = .GetInspector
Set wddoc = olInsp.WordEditor
wddoc.Range.InsertBefore "Good Morning"
The code does creates the email but stops at the body :(. I then get error message = "Run-Time error '91': Object Variable or with block variable not set".
I understand I am missing something but I dont know what to do to fix it.
Thank you very much for your help in advance.