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

Clickable link on Outlook HTML Body



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 12th 10, 03:46 AM posted to microsoft.public.outlook.program_vba
sreeni
external usenet poster
 
Posts: 4
Default Clickable link on Outlook HTML Body

Hello Everyone,

Please help on below query..

We are using HTML mails for communication with clients. I need to place a clickable link(URL) in outlook HTML mail body. we are using VB macro for generating mail. I tried using html code a href= .. but that is not placing clickable link. For mail body creation I am using object objMail.HTMLBody.

Thanks
Sreenivas.
Submitted using http://www.outlookforums.com
Ads
  #2  
Old April 12th 10, 09:16 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Clickable link on Outlook HTML Body



The a href tag is the way to go, for instance:

a href='http://www.whatever.comclick me/a

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Sun, 11 Apr 2010 21:46:17 -0400 schrieb Sreeni:

Hello Everyone,

Please help on below query..

We are using HTML mails for communication with clients. I need to place a

clickable link(URL) in outlook HTML mail body. we are using VB macro for
generating mail. I tried using html code a href= .. but that is not placing
clickable link. For mail body creation I am using object objMail.HTMLBody.

Thanks
Sreenivas.
Submitted using http://www.outlookforums.com

  #3  
Old April 12th 10, 05:12 PM posted to microsoft.public.outlook.program_vba
sreeni
external usenet poster
 
Posts: 4
Default Clickable link on Outlook HTML Body

Hi Michel, thanks for your reply. a href tag I tried but it is not placing clickbale link on outlook HTML body. It works for plain or rich text mail body. Please help if I need to change any other settings in outlook.

mb wrote on Mon, 12 April 2010 03:16
The a href tag is the way to go, for instance:

a href='http://www.whatever.comclick me/a

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Sun, 11 Apr 2010 21:46:17 -0400 schrieb Sreeni:

Hello Everyone,

Please help on below query..

We are using HTML mails for communication with clients. I need to place a

clickable link(URL) in outlook HTML mail body. we are using VB macro for
generating mail. I tried using html code a href= .. but that is not placing
clickable link. For mail body creation I am using object objMail.HTMLBody.

Thanks
Sreenivas.
Submitted using http://www.outlookforums.com


  #4  
Old April 12th 10, 10:49 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default Clickable link on Outlook HTML Body

Michael is correct about the a tag. If it's not working for you, show the
relevant code.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



"Sreeni" wrote:

Hi Michel, thanks for your reply. a href tag I tried but it is not placing clickbale link on outlook HTML body. It works for plain or rich text mail body. Please help if I need to change any other settings in outlook.

mb wrote on Mon, 12 April 2010 03:16
The a href tag is the way to go, for instance:

a href='http://www.whatever.comclick me/a

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Sun, 11 Apr 2010 21:46:17 -0400 schrieb Sreeni:

Hello Everyone,

Please help on below query..

We are using HTML mails for communication with clients. I need to place a

clickable link(URL) in outlook HTML mail body. we are using VB macro for
generating mail. I tried using html code a href= .. but that is not placing
clickable link. For mail body creation I am using object objMail.HTMLBody.

Thanks
Sreenivas.
Submitted using http://www.outlookforums.com


.
Submitted using http://www.outlookforums.com
.

  #5  
Old July 30th 10, 06:28 PM
ruve1k ruve1k is offline
Junior Member
 
First recorded activity at Outlookbanter: Jul 2010
Posts: 2
Default

I have experienced the same problem when trying to add a clickable hyperlink to an email's HTML body. This was caused by spaces in the full pathname of the file.
The solution that I used is to replace spaces with "%20" in the address portion of the a href.
Assuming you stored the full path of the link into a string named hyperlink, use the following to perform the replacement mentioned above.
Replace(hyperlink, " ", "%20")
Quote:
Originally Posted by Sue Mosher [MVP][_4_] View Post
Michael is correct about the a tag. If it's not working for you, show the
relevant code.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



"Sreeni" wrote:

Hi Michel, thanks for your reply. a href tag I tried but it is not placing clickbale link on outlook HTML body. It works for plain or rich text mail body. Please help if I need to change any other settings in outlook.

mb wrote on Mon, 12 April 2010 03:16
The a href tag is the way to go, for instance:

a href='http://www.whatever.comclick me/a

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Sun, 11 Apr 2010 21:46:17 -0400 schrieb Sreeni:

Hello Everyone,

Please help on below query..

We are using HTML mails for communication with clients. I need to place a

clickable link(URL) in outlook HTML mail body. we are using VB macro for
generating mail. I tried using html code a href= .. but that is not placing
clickable link. For mail body creation I am using object objMail.HTMLBody.

Thanks
Sreenivas.
Submitted using http://www.outlookforums.com


.
Submitted using http://www.outlookforums.com
.
 




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
Outlook Calender body no HTML (RichEdit control??? RTF or Plaintex Paul van de Louw Outlook - Calandaring 2 January 4th 10 10:05 AM
Can I embed a clickable link that includes command line arguments? Clif McIrvin Outlook - General Queries 10 November 25th 09 02:23 PM
determine what program is used to view html link in outlook message Allan J. Behr Outlook - General Queries 1 February 13th 07 01:35 PM
Outlook HTML.Body grahamproctor Outlook and VBA 9 January 25th 07 09:30 PM
sending html in body of outlook xp email Help a Novice Please Outlook - General Queries 3 February 22nd 06 07:50 AM


All times are GMT +1. The time now is 05:04 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.