2016-08-18 76 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