+ Reply to Thread
Results 1 to 6 of 6

Follow Cell Reference

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    Gloucester, MA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Follow Cell Reference

    I am trying to execute what i think should be a fairly simple command, but i'm having a tough time getting it to work the way I want. I want the program to follow the selected cells reference and select that. Essentially exactly the same function as the CTRL+[ shortcut. I tried to just record that shortcut, but to no avail.

    Please Login or Register  to view this content.
    This just takes me to a random cell on the sheet i was trying to reach. If i change this to read R[0]C[0], it takes me to the same cell but on the new sheet (Sheet1!B3 to Sheet2!B3, for example) regardless of where the original cell is referenced to.

    I did some searching on the net, and found someone with the same problem as me from a few years ago. However there was no working solution posted to his question that i could uncover. This is the code he found, but niether he or I could get it to work. It's a bit beyond my VBA ability to effectively analyze what this is doing and fix it.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated! I'm sure there is a simple fix for this, but i couldn't uncover it.
    Last edited by Alkuan; 02-08-2012 at 09:52 AM. Reason: Solved

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,957

    Re: Follow Cell Reference

    Can you explain what cell you are referring to, what the cell contains and what you are trying to achieve.

    For example, cell A2 contains E2. So, select cell A2 and press a button and it will go to/select cell E2.

    Mybe you could also explain what you are trying to achieve as there may be alternatives.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Follow Cell Reference

    Please use Code Tags not Quote Tags
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    02-08-2012
    Location
    Gloucester, MA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Follow Cell Reference

    Thanks for responding.

    I have two sheets. The first is a table which pulls its information from the second sheet, which contains more information. Each row of the table has a button which, when clicked, selects a certain cell in that row of the table. I want the button to then follow the reference of the selected cell (Say from Sheet1 B2, to its reference Sheet2 D5) and then delete the cell that is referenced.

    Hopefully that clears up what I currently have. If you need more specifics i could attach a workbook that demonstrates what I have in place.

  5. #5
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Follow Cell Reference

    Something like this should work, I think

    Please Login or Register  to view this content.
    Good luck.

  6. #6
    Registered User
    Join Date
    02-08-2012
    Location
    Gloucester, MA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Follow Cell Reference

    Fantastic! That works perfectly. Thanks so much for your help.

+ 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