Hi,
I’m trying to attach a picture/PNG file to An email via VBAcode using .HTMLBody but want to set the location of picture not within theHTML statement:
Currently:
.HTMLBODY = "<HTML>******><imgalign=baseline border=0 hspace=0 src='C:\Users\ documents\Reporting\MacroTest\New folder\Comms.PNG'</BODY></HTML>"
I’d like:
Comms = 'C:\Users\Documents\Reporting\Macro Test\Newfolder\Comms.PNG'
.HTMLBODY = "<HTML>******><imgalign=baseline border=0 hspace=0 src=’Comms’ </BODY></HTML>"
It isn’t working and I assume I’m missing somethingstupid. Any help will be appreciated
Thanks
I’m trying to attach a picture/PNG file to An email via VBAcode using .HTMLBody but want to set the location of picture not within theHTML statement:
Currently:
.HTMLBODY = "<HTML>******><imgalign=baseline border=0 hspace=0 src='C:\Users\ documents\Reporting\MacroTest\New folder\Comms.PNG'</BODY></HTML>"
I’d like:
Comms = 'C:\Users\Documents\Reporting\Macro Test\Newfolder\Comms.PNG'
.HTMLBODY = "<HTML>******><imgalign=baseline border=0 hspace=0 src=’Comms’ </BODY></HTML>"
It isn’t working and I assume I’m missing somethingstupid. Any help will be appreciated
Thanks