Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   How to display text of a hyperlink in an email body? (http://www.outlookbanter.com/outlook-vba/51434-how-display-text-hyperlink-email.html)

salad June 28th 07 11:10 AM

How to display text of a hyperlink in an email body?
 
I would like to put
Click Here
where a person could click on that phrase and it would open the link to
http://www.test.com

..Body = "This is test " & "href=" & Chr(34) & "http://www.test.com/" &
Chr(34) & "Click here"

does not work. Is there a way I can insert the link and the display
text in the email body?

TJ June 28th 07 11:15 AM

How to display text of a hyperlink in an email body?
 
try
Body = "This is test " & "a href=" & Chr(34) & "http://www.test.com/" &
Chr(34) & "Click here/a"

"salad" wrote in message
nk.net...
I would like to put
Click Here
where a person could click on that phrase and it would open the link to
http://www.test.com

.Body = "This is test " & "href=" & Chr(34) & "http://www.test.com/" &
Chr(34) & "Click here"

does not work. Is there a way I can insert the link and the display text
in the email body?




Sue Mosher [MVP-Outlook] June 28th 07 01:24 PM

How to display text of a hyperlink in an email body?
 
And set the value of HTMLBody not Body.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"TJ" wrote in message ...
try
Body = "This is test " & "a href=" & Chr(34) & "http://www.test.com/" &
Chr(34) & "Click here/a"

"salad" wrote in message
nk.net...
I would like to put
Click Here
where a person could click on that phrase and it would open the link to
http://www.test.com

.Body = "This is test " & "href=" & Chr(34) & "http://www.test.com/" &
Chr(34) & "Click here"

does not work. Is there a way I can insert the link and the display text
in the email body?




salad June 28th 07 08:39 PM

How to display text of a hyperlink in an email body?
 
Sue Mosher [MVP-Outlook] wrote:
And set the value of HTMLBody not Body.

Thanks TJ. I was trying so many iterations of that line I left out the
anchor.

And Sue, the HTMLBody did the trick.

Thanks to you two for the assistance.



All times are GMT +1. The time now is 11:36 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com