ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] outlook¤º¤å¦p¦ó³]©w¦r«¬¬°12 ? ¬Obug¶Ü?

[µo°Ý] outlook¤º¤å¦p¦ó³]©w¦r«¬¬°12 ? ¬Obug¶Ü?

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?
  1. Sub Mail_Outlook_With_Signature_Html_1()
  2. ' Working in Office 2000-2013
  3.     Dim OutApp As Object
  4.     Dim OutMail As Object
  5.     Dim strbody As String

  6.     Set OutApp = CreateObject("Outlook.Application")
  7.     Set OutMail = OutApp.CreateItem(0)

  8.     strbody = "p style='font-family:calibri;font-size:16.5'" & "Dear " & Range("D74") & "," (HTML tags not included)

  9.     On Error Resume Next

  10.     With OutMail
  11.         .Display
  12.         .To = Range("H74")
  13.         .CC = ""
  14.         .BCC = ""
  15.         .Subject = ""
  16.         .HTMLBody = strbody & .HTMLBody
  17.         .Display
  18.     End With

  19.     On Error GoTo 0
  20.     Set OutMail = Nothing
  21.     Set OutApp = Nothing
  22. 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¶Ü?
PKKO

½Ö¦³¿ìªk¥Î¢ä¢Ð¢Ï±N¢Ý¢ã¢â¢Ú¢Ý¢Ý¢Ù¤º¤åÅܦ¨¢°¢±¦rÅé¶Ü¡H
PKKO

TOP

        ÀR«ä¦Û¦b : §Ú­Ì³Ì¤jªº¼Ä¤H¤£¬O§O¤H¡D¥i¯à¬O¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD