Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
485 views
in Technique[技术] by (71.8m points)

html - Using .HTMLBody in Outlook Macro and Cannot Change Font Size to 12 pt

I've been trying to change the font size of only certain parts of my email to size 12pt font. In the below code I have tried 11pt and 13pt which both work just fine but when trying to set it to 12pt font it comes out at size 10pt in the email and I have no clue why. I'm new to both VBA and HTML so I'm hoping its something simple I am missing. Here is a portion of my code:

    .HTMLBody = "Hello All,<br><br>" & _
    "<B><U><font style=""font-size:13pt"">Incidents:</B></U></font><br><br>" & _
    ES11Text & _
    "<B><U>Non Intervention Incidents:</B></U><br><br>" & _
    NonInterventionText & _
    "<B><U>Hand-off:</B></U><br><br>" & _
    "N/A<br><br>" & _
    "<B><U>Escaltions:</B></U><br><br>" & _
    Escalations & _
    "Regards,<br>" & _
    Signature
question from:https://stackoverflow.com/questions/65895667/using-htmlbody-in-outlook-macro-and-cannot-change-font-size-to-12-pt

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...