http://www.mrexcel.com/forum/excel-questions/709814-email-formatting-when-using-visual-basic-applications-open-outlook.html
³o¬O°ê¥~½×¾Âªººô§},¥L¸ò§Ú¹J¨ì¬Û¦Pªº°ÝÃD,¥i¥H³]©w¦r«¬¬°11.5, 12.5 ´N¬O¤£¯à12?¦ü¥G¬O¤@Óbug?- Sub Mail_Outlook_With_Signature_Html_1()
- ' Working in Office 2000-2013
- Dim OutApp As Object
- Dim OutMail As Object
- Dim strbody As String
- Set OutApp = CreateObject("Outlook.Application")
- Set OutMail = OutApp.CreateItem(0)
- strbody = "p style='font-family:calibri;font-size:16.5'" & "Dear " & Range("D74") & "," (HTML tags not included)
- On Error Resume Next
- With OutMail
- .Display
- .To = Range("H74")
- .CC = ""
- .BCC = ""
- .Subject = ""
- .HTMLBody = strbody & .HTMLBody
- .Display
- End With
- On Error GoTo 0
- Set OutMail = Nothing
- Set OutApp = Nothing
- End Sub
½Æ»s¥N½X strbody = "p style='font-family:calibri;font-size:16.5'" & "Dear " & Range("D74") & ", "
³o¼Ë¦r«¬·|Åܦ¨12.5
If I change the font-size to 15 or 15.5, actual size in email is 11.5.
If I change it to 16, actual size is 10.
If I change it to 17, actual size is 13.
If I change it to 16.5, actual size is 12.5.
·Ó²z¨Ó»¡³]©w¬°16À³¸Ó´N¬O12¤F,¦ý«oÅܦ¨10ªº¦rÅé,Ãø¹D¯uªºµLªk³z¹LVBA³]©woutlook¤º¤åªº¦rÅé¤j¤p¬°12¶Ü? |