在.html正文中传递VBA变量

时间:2016-08-18 17:12:19

标签: html excel-vba vba excel

我正在编写VBA以使用html格式创建自动电子邮件。我有几个来自vba的变量值,我需要通过html编码传递。长话短说:

FullName = strfullname ' value for strfullname will be passed from another function

With objmail
  .bodyformat = olformathtml
   .htmlbody = "This is my fullname: (display the value of fullname ) "
end with

1 个答案:

答案 0 :(得分:0)

FullName = strfullname ' value for strfullname will be passed from another function

With objmail
   .bodyformat = olformathtml
   .htmlbody = "This is my fullname: " & FullName
end with