#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default link

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default link


I opened a new Word document and copied an IE address from my web
browser into the word document and then saved word as HTML. I then
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 actual
double quote will appear in the results.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=169100

Microsoft Office Help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range Link and Chart Link Macros mucrick Excel Programming 1 March 12th 09 09:13 PM
Hyperlink Link Field to link to file on website BZeyger Excel Programming 0 May 1st 07 05:06 PM
Updating link to database w/o breaking the link A.Gates Excel Programming 0 January 26th 07 06:55 PM
if i sort cell that has link to another page how to keep link steve Bahrain Excel Discussion (Misc queries) 1 August 16th 06 01:20 PM
if i sort cell that has link to another page how to keep link steve Bahrain Excel Discussion (Misc queries) 0 August 16th 06 07:37 AM


All times are GMT +1. The time now is 05:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"