+ Reply to Thread
Results 1 to 3 of 3

Hyperlinking a Cell value and adding to email body

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Hyperlinking a Cell value and adding to email body

    Hello All,


    What I have
    I have a code that generates a link to a file in my CDrive and pastes its hyperlink to a cell in Column 13 . The line that does it is

    HTML Code: 
    Now I have another macro that is sending email. In the body of the email, I want this I want this location also pasted.

    What I need

    When I tried the following code, it either pastes as a simple text or doesn't paste anything

    HTML Code: 




    Any help is much appreciated


    Thanks,
    Last edited by subbby; 11-14-2019 at 12:34 PM. Reason: Solved

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Hyperlinking a Cell value and adding to email body

    .Body is for simple text. You need to use .HTMLBody and construct body with html tags.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Hyperlinking a Cell value and adding to email body

    Thanks for the tip, Sir. Appreciate it. I reworked and it worked fine

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding a picture to email body with VBA macro
    By orhanceliloglu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2016, 09:54 PM
  2. [SOLVED] Adding Logo that is a variable to email body
    By Bobbbo in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-09-2016, 11:38 PM
  3. [SOLVED] Adding a Range to an Email Body
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-13-2014, 11:29 AM
  4. Adding to body in email
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-24-2013, 03:09 PM
  5. Adding body to email via VBA for an outlook template
    By teekayy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2012, 04:19 AM
  6. [SOLVED] Adding a disclaimer changes image in email body
    By johncassell in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2012, 08:42 AM
  7. Hyperlinking part of an email body
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2010, 08:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1