2016-08-18 35 views
0

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

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 

回答

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

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

太感谢你了!这就是我想要的。 – user3323922