Hello, I am trying to insert HTML code for the first time in my VBA to help format the body with bold, font, number point, etc.
I found a nifty site (https://www.quackit.com/html/online-html-editor/) that allows me to build what I want the email body to look like and then it gives me the HTML. However, when I put the code into the VBA there are multiple lines and it tries to put quotations around just the first line. If possible, how do I put this code in?
Code below:
Any help appreciated.
I found a nifty site (https://www.quackit.com/html/online-html-editor/) that allows me to build what I want the email body to look like and then it gives me the HTML. However, when I put the code into the VBA there are multiple lines and it tries to put quotations around just the first line. If possible, how do I put this code in?
Code below:
Code:
With OutlookMessage .To = "Jesse.McKibben@walmart.com"
.CC = ""
.BCC = ""
.Subject = TempFileName
.HTMLBody = "<p><kbd><big><tt>Hello,</tt> </big></kbd><o:p></o:p></p>"
<p><kbd><big>Please execute the following for all of the attached items </big></kbd><o:p></o:p></p>
<ol>
<li><kbd><big>Place item in deleted status</big></kbd></li>
<li><kbd><big>Do <strong>NOT</strong> change Item Desc 1 to delete</big></kbd></li>
<li><kbd><big>Remove all traits and flags</big></kbd></li>
<li><kbd><big>Change Item expiration date to current date</big></kbd></li>
<li><kbd><big>After deleted send all items to BPS that have PLU's to have PLU removed </big></kbd><o:p></o:p></li>
</ol>
<p><kbd><big>Thanks!</big></kbd> <o:p></o:p></p>"
.Attachments.Add DestinWB.FullName
.Display
End With
Any help appreciated.
Last edited: