A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to display text of a hyperlink in an email body?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 28th 07, 11:10 AM posted to microsoft.public.outlook.program_vba
salad
external usenet poster
 
Posts: 27
Default 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?
Ads
  #2  
Old June 28th 07, 11:15 AM posted to microsoft.public.outlook.program_vba
TJ
external usenet poster
 
Posts: 6
Default 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?



  #3  
Old June 28th 07, 01:24 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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?



  #4  
Old June 28th 07, 08:39 PM posted to microsoft.public.outlook.program_vba
salad
external usenet poster
 
Posts: 27
Default 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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Append Body of Email to Text File J Outlook and VBA 1 September 11th 06 07:10 AM
Can I display a flyer (.doc) as the body of my email? Jan Outlook Express 2 June 22nd 06 03:45 PM
Outlook won't display body of plain text message Mike Outlook - General Queries 1 March 14th 06 07:54 PM
How do I append text to the body of a email? Beginner Outlook and VBA 2 February 9th 06 10:36 PM
Dragging an email to the Calendar drops the email body text yan Outlook - Calandaring 2 February 1st 06 02:23 AM


All times are GMT +1. The time now is 12:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.