I have a macro that creates email. It adds three lines of spacing before the default signature when opening new email.
I tried various replace and trim solutions.
Relevant part of code:
Set objEmail = app_Outlook.CreateItem(olMailItem)
Dim signature As String
strSalutation = "<html><head></head><body>" & sGreeting & " " & Sheets("Tabelle2").Cells(i, 5) & "," & "</body></html>"
objEmail.SentOnBehalfOfName = "address@mail.com"
objEmail.Display
objEmail.To = sEmail_Address
objEmail.Subject = sTitle
sSignature = Replace(objEmail.HTMLBody, Chr(13), "")
objEmail.HTMLBody = strSalutation & "<p>" & sTemplate & objEmail.HTMLBody
I need this to work on anyone's laptop, so not just with my signature.