+ Reply to Thread
Results 1 to 6 of 6

Converting a Hyperlink to Show Actual Email Address, Not Be a Link

  1. #1
    Registered User
    Join Date
    03-10-2008
    Posts
    5

    Converting a Hyperlink to Show Actual Email Address, Not Be a Link

    Hi this is my first post. I wasn't sure if this would be a macro or not, so I posted it here... hope this is the right location.

    I am using Office XP Professional and Excel 2000. I have a document which has hyperlinks. Is there a macro or a way to make it show the actual email address [email protected] instead of John Doe, President and having to click on it as link? Also, would there be a way, to keep it showing, John Doe, President (without linking) so I keep the person's information as well as get the email address? I will have hundreds if not thousands of these in my document, so I don't want to have to manually do it if at all possible.

    Thank you very much for your time and help.

  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,444
    Hi,

    This can be done with a UDF

    http://www.ozgrid.com/VBA/HyperlinkAddress.htm
    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
    Registered User
    Join Date
    03-10-2008
    Posts
    5
    Thank you very much. I got that to work. A follow up question... if I have an entire column I need to to convert can I do it all at once? Would I just type in (A1:A100) or whatever?

  4. #4
    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,444
    Just copy and paste the function. XL will adjust the applicable cell.

  5. #5
    Registered User
    Join Date
    03-17-2007
    Posts
    17
    I can't seem to get this to work though I'm working with a web address and not an email address. I'm on Office 2003 and tried both copy-pasting and typing in the function manually. I think I followed the directions exactly but see a compile error when entering in 'GetAddress(A1).' Any ideas?

  6. #6
    Registered User
    Join Date
    03-17-2007
    Posts
    17
    Got it working just fine on Microsoft 2007.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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