+ Reply to Thread
Results 1 to 4 of 4

Changing hyperlink email address fail

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    brisbane
    MS-Off Ver
    2013
    Posts
    1

    Changing hyperlink email address fail

    Hi,

    New here with a simple problem I cannot solve.

    Need to change some information in a column list of email addresses that are hyperlinked to outlook.

    Most addresses are correct with a hyperlink that works well. I have a couple of addresses that have information in the cell that opens up an outlook message to a different email address. Hovering over a cell with aaaaaa@xyz.com shows the message mailto:xxxxx@abc.com.

    How do I change the hyperlink to the correct email address?

    Thanks,
    xflunk

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Changing hyperlink email address fail

    Hi,

    This code will take the contents of each cell and create a hyperlink in that cell to email the address in the cell. Adjust the range A1:A10 to suit your data.

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Changing hyperlink email address fail

    I have a couple of addresses that have information in the cell that opens up an outlook message to a different email address. Hovering over a cell with aaaaaa@xyz.com shows the message mailto:xxxxx@abc.com.
    How do I change the hyperlink to the correct email address?
    Below is a VBA solution - helpful because it checks all hyperlinks:
    NOTE: I am assuming that the link is correct, but that the displayed value is incorrect

    In the attached file:
    - FixedSheet (= bad data) is not altered by the macro
    - initially identical to sheet "SomeLinks"
    - during testing it is useful to be able to copy the "bad data" back to "SomeLinks"

    The VBA:
    - loops through all links
    - checks "display text" against related "link"
    - if different "display text" is replaced
    - "bad data" printed to new sheet

    To test:
    - open the file
    - hover over the links to spot erroneous "friendly name"
    - run macro with {CTRL} t
    - hover over cells in sheet "SomeLinks" to see if problem sorted

    If it does not do what you want let me know
    eg - you may not want "MailTo:" to appear at beginning of "display text", etc

    The code can be reduced in length significantly by not printing "bad values" to worksheet
    - I thought this might be useful during testing however

    Let me know what you think
    Attached Files Attached Files
    Last edited by kev_; 08-10-2017 at 10:08 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Changing hyperlink email address fail

    If there are very few problem links and you know which they are, then there are 2 possibilities

    IF the link is by formula
    =HYPERLINK("abc@gmail.com","xyz@gmail.com")
    - SOLUTION = edit the formula


    IF the link is embedded
    - SOLUTION = follow the pictures after right-clicking on the cell

    EditLink01.jpg

    EditLInk002.jpg
    Last edited by kev_; 08-10-2017 at 09:53 AM.

+ 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. [SOLVED] INDEX MATCH as HYPERLINK email address
    By blackburnsexcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-07-2015, 12:12 PM
  2. Make email address a hyperlink
    By lvalesko in forum Excel General
    Replies: 7
    Last Post: 08-13-2015, 02:22 AM
  3. [SOLVED] Need Help with HTMLBody. Hyperlink email address and web address in body message VBA
    By Christopher Val in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2015, 04:39 PM
  4. Typing eMail Address W/O hyperlink
    By Launchnet in forum Excel General
    Replies: 2
    Last Post: 07-26-2009, 10:05 PM
  5. Hyperlink to email address with attachment
    By blue_toon in forum Excel General
    Replies: 1
    Last Post: 05-20-2005, 07:06 PM
  6. vlookup email address not hyperlink
    By MaryM in forum Excel General
    Replies: 0
    Last Post: 05-17-2005, 02:15 PM
  7. email address hyperlink
    By Ulti in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2005, 12:06 AM

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