In Excel VBA I want to create a macro to send a letter via Outlook.
I need a signature, but I cannot create it, because I have a .Body
part and I need to paste a dynamic range of cells after it.
With newEmail
.Display
.SentOnBehalfOfName = ""
.To = ""
.CC = ""
.Subject = ""
.BodyFormat = olFormatHTML
.Body = "Good day" & vbCrLf & "bla bla "
Set xInspect = newEmail.GetInspector
Set pageEditor = xInspect.WordEditor
Sheet1.Range("G128", ActiveSheet.Range("G128").End(xlDown)).Copy
pageEditor.Application.Selection.Start = Len(.Body)
pageEditor.Application.Selection.End = pageEditor.Application.Selection.Start
pageEditor.Application.Selection.Paste
.Display
.Send
What and where should I add, to add a signature after the code pastes the range?
P.S. .Body
before the range is necessary.