+ Reply to Thread
Results 1 to 5 of 5

How can I use a dropdown box to go to various cells in my spreedsheet?

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    manchester
    MS-Off Ver
    Excel 2007
    Posts
    7

    How can I use a dropdown box to go to various cells in my spreedsheet?

    What I would like is to use a dropdown box with a list of team names, when you click on a team it will go to that cell where the team is located. If that's not possible can I put a number in a cell and enter and that takes me to the location of the cell with the team name in it?
    Last edited by melverz; 07-16-2009 at 03:48 PM. Reason: problem solved

  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: How can I use a dropdown box to go to various cells in my spreedsheet?

    If the team names are in column B and the cell with the dropbox is A1, then right-click on the sheettab and select VIEW CODE, then paste in this sheet macro:

    Please Login or Register  to view this content.
    Then press Alt-Q to exit the editor and save your sheet.

    Now anytime you make a choice in A1, it will search column B for the match and jump to that cell.
    _________________
    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
    07-15-2009
    Location
    manchester
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How can I use a dropdown box to go to various cells in my spreedsheet?

    Thanks it works if I manually input a number or team in the cell but doesn't seem to work when I use the drop box. I'm not too bothered as the dropbox was more for cosmetic reasons. The main thing was to to get to a particular cell in the spreadsheet which this does. Thanks again

  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: How can I use a dropdown box to go to various cells in my spreedsheet?

    If you use a DataValidation drop box it SHOULD work. I've used ws_change events with dropbox triggers before.

    Anyway, if that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,263

    Re: How can I use a dropdown box to go to various cells in my spreedsheet?

    FYI, if you named the ranges you want to go to, then you can just select them from the Name box on the left of the formula bar.
    Remember what the dormouse said
    Feed your head

+ 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