I have trhe following code to create an email, add a subject, body and attachment but the line to add the body text is causing an error
If I ignore the .Body line, the .Send executes with no problem.
Not entirely sure why this doesn't work as I can't find anything online other than what I have and this works in Excel 2016.
TIA
Code:
Set objMail = objOutlook.CreateItem(0)
With objMail
.To = strEmail
.Subject = Range("Admin_EmailSubject") & " - " & strMonth
.Body = Range("Admin_EmailBody")
.Attachments.Add ActiveWorkbook.Path & "\Client Outputs\" & strClient & " " & strMonth & ".pdf"
.Send
End With
Not entirely sure why this doesn't work as I can't find anything online other than what I have and this works in Excel 2016.
TIA