+ Reply to Thread
Results 1 to 7 of 7

reference in hyperlink, delete reference without losing hyperlink

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4
    Hopefully I'm not crossposting this too much. 3rd site, hopefully answers soon. This is really making my head hurt, so just I'm copypasting it from my 7forums post...


    Okay, this is a bit strange and I can't think of any way this could work, but maybe the internet can surprise me...

    I have data (text, not numbers) in Sheet1. I concatenate it into Sheet2 as part of a hyperlink. How can I make it so that the whole workbook is only Sheet2 with working hyperlinks? (Yes, I have a practical application of this)

    Example:
    Sheet1!A1 says: page
    Sheet2!A1 says: =HYPERLINK(CONCATENATE("http://www.com/",Sheet1!A1),Sheet1!A1)
    Sheet2!A1 actually reads: "page", and it has a hyperlink to "http://www.com/page"

    Now, how can I condense the workbook to ONLY Sheet2, maintaining not only the text referenced from Sheet1, but the working hyperlinks as well?
    So the workbook will have ONE page with cell A1 reading "page" and hyperlinking to "http://www.com/page"

    Does that make sense?
    Is it even possible?


    Edit: If this is impossible, please let me know so I can focus on a different approach.

    Sorry bout that, new. Here they are (links to cross posts):
    http://www.sevenforums.com/microsoft...ible-task.html
    http://answers.yahoo.com/question/in...522AAfEPcC&r=w
    Last edited by Paul; 11-30-2010 at 02:03 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: reference in hyperlink, delete reference without losing hyperlink

    Why not just store the Sheet1 values on Sheet2 ?

    If you want to replace the HYPERLINK function calls with static links then you will need code to iterate and replace etc...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: reference in hyperlink, delete reference without losing hyperlink

    Awesome! Only thing, how do I apply it to the whole sheet at once, instead of just column A (not great with vba)?
    What do I replace the column part of the code with?

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 11-30-2010 at 04:23 AM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: reference in hyperlink, delete reference without losing hyperlink

    Remove the Columns("A") reference and replace with Cells

    Note: there are limitations to the number of range Areas that SpecialCells can process, see: here for more info. / workaround etc.

  5. #5
    Registered User
    Join Date
    11-29-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: reference in hyperlink, delete reference without losing hyperlink

    Works perfectly! The only cells it didn't work on were the "0" values, but those are getting deleted anyway.
    Thank you very much!

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: reference in hyperlink, delete reference without losing hyperlink

    Please be sure to update all of your cross posts accordingly.

  7. #7
    Registered User
    Join Date
    11-29-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: reference in hyperlink, delete reference without losing hyperlink

    Yep, got that taken care of.

+ 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