Hallo Excel-Expertern,
bräuchte bitte Euer Fachwissen.
Ich hab ein Excel-Tool, mit dem ich eine E-Mail erstellen kann. Nun möchte ich aber zwischen bestimmten Wörtern (in meinem Beispiel: Produkt, Stücke, Preise)
einen Abstand (Tab). Leider funktioniert kein Befehl. Könnt Ihr mir bitte helfen?
Hinweis: Ich benötige das HTML-Body
https://www.herber.de/bbs/user/158763.xlsm
Dim oApp As New Outlook.Application
Dim oMail As Outlook.MailItem
Set oMail = oApp.CreateItem(olMailItem)
With oMail
.BodyFormat = olFormatHTML
.Display
.To = "Test@t-online.de"
.Subject = Format(Date, "yyyy_mm_dd") & "_" & Range("A1")
.HTMLBody = "Hallo
das ist eine Test-Datei.
" & _
"Produkt Stücke Preise
" & _
"Viele Grüße
"
.Display
End With