Bestimmten Tabellenbereich per Mail mit Signature
25.01.2019 06:15:16
Heidi
ich bräuchte Hilfe. Wie kann ich in diesem Code einen bestimmten Tabellenbereich eingeben? Beispiel: A1:I90 ?
Der Code funktioniert, aber leider erscheint mein fester Bereich nicht in der Mail.
Code:
Sub Mail_Outlook_With_Signature_Html_1()
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "
Dear Customer Ron de Bruin
" & _
"Please visit this website to download the new version.
" & _
"Let me know if you have problems.
" & _
Thank you"
On Error Resume Next
With OutMail
.Display
.To = "max.muster@musterman"
.CC = ""
.BCC = ""
.Subject = "This is the Subject line"
.HTMLBody = strbody & "
" & .HTMLBody
.Send
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Dankeschön!Anzeige
