标签: excel-vba email late-binding vba excel
我有一些用VBA编写的代码,用于在excel中运行,它应该发送一封html电子邮件。这最初工作正常,但我试图后来绑定我的代码,仍然发送电子邮件,但HTML显示为收件人的纯文本。我的代码是:
String script = "var date = new Date(dateInUnknownFormat).getTime();";
答案 0 :(得分:1)
将.Body = emailbody更改为.HTMLBody = emailbody
.Body = emailbody
.HTMLBody = emailbody