2016-08-18 6 views
0

Я кодирую VBA для создания автоматизированного электронного письма с использованием html-формата. У меня есть пара переменных значений из vba, которые мне нужно передать в html-кодировании. Короче говоря:Pass VBA Variable в .html body

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