Hello Everyone,
I have a VBA code which creates an outlook email containing specific information. The issue is that despite having a default set font in Outlook (Calibri size 11) the font generated through the VBA is Calibri size 10.
Additionally, is there a way to add bullets within the text in VBA?
Below is the code, any feedback is highly appreciated!
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 = "Good day Everyone,<br><br>" & _
"Please see below details:<br><br>" & _
"Time: 15:00 <br> Table: 1 <br><br> PAX: 8 <br><br>" & _
"Allergies = None<br>"
With OutMail
.Display
.To = ""
.CC = ""
.BCC = ""
.Subject = "Reservation"
.HTMLBody = strbody & "<br>" & .HTMLBody
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Bookmarks