link

G

geebee

hi,

i have the following to put something into an email body. trying to figure
out how to put an <a href> link in it also..

.....
l_Msg.HTMLBody = "<html><p><font size=""1"" color=""999999"" face =
""arial""><b><u>" _
& emailTITLE & "</u></b></font><br>" _
& "<font size=""1"" color=""336699"" face = ""arial"">" _
& BDY2 & "</font>" _
& "</p>" _
& "<font size=""1"" color=""999999"" face = ""arial""><b><u>" _
& BDY3 & "</u></b></font>" _
& "<br><font size=""1"" color=""336699"" face = ""arial"">" _
& BDY4 & "</font>" _
& "<br><br><font size=""1"" color=""999999"" face = ""arial""><b><u>" _
& BDY5 & "</u></b></font>" _
& "<br><font size=""1"" color=""336699"" face = ""arial"">" _
& BDY6 & "</font>" _
....

thanks in advance,
geebee
 
J

joel

I opened a new Word document and copied an IE address from my we
browser into the word document and then saved word as HTML. I the
extracted this line:

<p class=MsoNormal><a
href="http://www.thecodecage.com/forumz/excel-vba-programming/169100-link.html">http://www.thecodecage.com/forumz/excel-vba-programming/169100-link.html</a></p>

So it should be this

l_Msg.HTMLBody = "<html><p><font size=""1"" color=""999999"" face =
""arial""><b><u>" _
& emailTITLE & "</u></b></font><br>" _
& "<font size=""1"" color=""336699"" face = ""arial"">" _
& BDY2 & "</font>" _
& "</p>" _
& "<font size=""1"" color=""999999"" face = ""arial""><b><u>" _
& BDY3 & "</u></b></font>" _
& "<br><font size=""1"" color=""336699"" face = ""arial"">" _
& BDY4 & "</font>" _
& "<br><br><font size=""1"" color=""999999"" face = ""arial""><b><u>
_
& BDY5 & "</u></b></font>" _
& "<br><font size=""1"" color=""336699"" face = ""arial"">" _
& BDY6 & "</font>" _
& "<a href=""http://www.thecodecage.com/forumz/" _
& "excel-vba-programming/169100-link.html"">" _
& "http://www.thecodecage.com/forumz/" _
& "excel-vba-programming/169100-link.html</a>"


Note I put two double quotes in a row into the string so the actua
double quote will appear in the results
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top