Outlook Email and Signature from Excel VBA - .Body vs .HTMLbody

前端 未结 2 771
礼貌的吻别
礼貌的吻别 2020-12-10 23:23

I have a button on my worksheet to send an email (plus more, but not important). I want my default signature with its HTML formatting but neither option is producing the re

2条回答
  •  渐次进展
    2020-12-10 23:50

    When you set the HTMLBody property, make sure you merge the existing HTMLBody (with the signature) and your new data - you cannot just concatenate two HTML strings and expects a valid HTML. find the position of the " string, find the position of the next ">" (to take care of the body elements with attributes), insert your data after that ">".

提交回复
热议问题