+ Reply to Thread
Results 1 to 4 of 4

Need Help Converting hyperlink to text

Hybrid View

jspinx Need Help Converting... 03-15-2009, 02:47 AM
JBeaucaire Re: Need Help Converting... 03-15-2009, 03:24 AM
jspinx Re: Need Help Converting... 03-15-2009, 12:27 PM
JBeaucaire Re: Need Help Converting... 03-15-2009, 08:30 PM
  1. #1
    Registered User
    Join Date
    05-24-2007
    Posts
    73

    Need Help Converting hyperlink to text

    I have a sample spreadsheet (attached). This spreadsheet has a picture that is hyperlinked to an email address. The real spreadsheet has thousands of entries.

    I need to be able to extract the email addresses out of the hyperlinked picture to the next row over. I also need to be able to automate this as doing these one by one will take way to long

    Thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Help Converting hyperlink to text

    This code is designed to extract the email address from each shape in your book. It will put them in Column A of the activesheet, so edit that if that's not where you want it.
    Sub ShapeEmailAddresses()
    Set MyDocument = Activesheet
        For Each sh In MyDocument.Shapes
            x = sh.Hyperlink.Address
            x = WorksheetFunction.Substitute(x, "mailto:", "")
            Range("A65536").End(xlUp).Offset(1, 0).Value = x
        Next sh
    End Sub
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-24-2007
    Posts
    73

    Re: Need Help Converting hyperlink to text

    thank you but there isnt a way to do a mass change? I have to copy and paste this in each row one by one?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Help Converting hyperlink to text

    ??? Did you run the macro? It pulls ALL the email addresses out of ALL the shapes and puts them in a column. Isn't that what you asked for?

    If not, please restate your complete need...or post your sheet again showing what your looking for your final result to be.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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