+ Reply to Thread
Results 1 to 8 of 8

Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

  1. #1
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    One of the biggest weaknesses of Excel is when you are linking to another cell in Excel using a hyperlink, { e.g. Ctrl k , Place in this document, Type the cell reference } you have to hardcode the cell reference. This obviously displaces it when I insert rows. Does anybody know how to create hyperlinks to other cells in Excel which update the same way normal cells do, i.e. when you insert rows the references change. Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    try
    =HYPERLINK("#sheet2!A"&ROW(Sheet2!A1))
    if you insert a row above row 1 of sheet 2
    it changes to

    =HYPERLINK("#sheet2!A"&ROW(Sheet2!A2))
    if you want the text from the cell on sheet 2 add the friendly name as
    =HYPERLINK("#sheet2!A"&ROW(Sheet2!A1),Sheet2!A1)
    Last edited by martindwilson; 07-19-2013 at 07:27 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    ok thanks, but I am having some dire problems with =hyperlink which i have googled endlessly to no avail. It always tells me "cannot open the specified file" even when I am hyperlinking to other cells within the same workbook. Its completely messed up. I saw many complaints about this online but no solutions. Do you have any ideas. Its so frustrating... there's really no reason for such a simple formula to fail. Thanks

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    both those work fine make sure the # is in there,try saving the workbook first before entering the formulas
    perhaps
    =HYPERLINK("#"&"sheet2!A"&ROW(Sheet2!A2)) is clearer ,to link in same workbook the sheet name is preceded by#
    Attached Files Attached Files
    Last edited by martindwilson; 07-19-2013 at 10:10 AM.

  5. #5
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    ah right , I see you need the hash, its really odd how it doesnt work the way it should, thanks

  6. #6
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    ok, there's a problem, I have spaces in my sheet name, that seems to kill the row function!!!

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    you need single quotes
    =HYPERLINK("#"&"'sheet 2'!a"&ROW('Sheet 2'!A4),'Sheet 2'!A4)

  8. #8
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Hyperlinks are hardcoded, anyway to have them move as I insert rows or columns?

    briliant, cant thank you enough

+ 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. Replies: 0
    Last Post: 01-25-2013, 12:05 PM
  2. have reference cells move in rows while I move in columns
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2011, 09:33 AM
  3. autofilter macro to delete rows. Range dependant of cell selected (not hardcoded)
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2011, 07:35 PM
  4. [SOLVED] My hyperlinks are adversely effected when I insert new rows.
    By Maryrose in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 05:00 PM
  5. [SOLVED] Hyperlinks doing weird things when adding columns or rows
    By hssmith in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-30-2005, 12:25 PM

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