+ Reply to Thread
Results 1 to 6 of 6

Hyperlink to the cell from where it was previously

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Hyperlink to the cell from where it was previously

    Hello,

    I am not sure if hyperlink is the right feature for what i am looking!
    I have a big sheet, with certain explanations. When i scroll down the sheet i will have to refer to some rows above. So i create a hyperlink to a cell on that row.
    Once i am done reading that row, i want to go back to the row from where i came. But this time i cant hyperlink, because there could be multiple rows below which would refer to same reference.

    Hope i have made my question clear, waiting for the advises.

    Regards, Hani

  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: Hyperlink to the cell from where it was previously

    No ideas come to mind from your example.

    Attach a sample workbook. Make sure there is enough data for you to demonstrate what is needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    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
    06-07-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Hyperlink to the cell from where it was previously

    test.xlsx

    I have uploaded a test sheet. R13C8 & R17C8 has hyperlink to R3C2.
    In R3C2 i need something like a back button, to go back to the previous row from where i reached R3C2.

    Hope this gives a better explanation

    /Hani

  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: Hyperlink to the cell from where it was previously

    The only way to "store" a random row reference to down below is to use VBA.

    We can store the "row where we clicked a hyperlink" in a public variable, so we can return to it later using a specific method.

    When you click a hyperlink in column I the clicked cell "row" is memorized, then the hyperlink jumps you up.

    1) Put the word RETURN in column I on the rules up above where you'd like the ability to jump back down.

    2) To insert this code, right-click the tab name and select VIEW CODE, this opens the VBA Editor and shows you that sheet module.

    3) Paste in this sheet code:
    Please Login or Register  to view this content.
    4) Close the vbeditor and save your workbook as a macro-enabled workbook.... *.xlsm

    5) Now click on a hyperlink down below to jump up, the double-click the word "Return" on that upper rule and it will jump you back down.

  5. #5
    Registered User
    Join Date
    06-07-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Hyperlink to the cell from where it was previously

    Thanks JBeaucaire!!

    This was 1 good experience.. the whole day i was looking for a solution.. haven't done my actual work .. Thanks for introducing me to a new language ..
    You also made me to look for debug technique in VBA

    The code works perfect.
    Just the word "RETURN" has to be "Return" and can be placed anywhere.

    Thanks for the guidance.

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

    Re: Hyperlink to the cell from where it was previously

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ 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