+ Reply to Thread
Results 1 to 11 of 11

Navigation Through spreadsheet using short cuts - not range names.

  1. #1
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Navigation Through spreadsheet using short cuts - not range names.

    I currently have a navigation menu with 9 options however these options are based on Range names that I have set up.

    The concern is that if someone deletes the cell that contains the range name, obviously that option in the navigation won't work, nor would you want it to.

    However if someone re-enters a cell that you would want linked up with the navigation there's a lot more action involved.

    What i'm looking for is a macro that can be used through a button,
    Idealy i'd like the macro to search through column "B" and look for key labels (ex: "Ground Floor", "1st Floor" "2nd Floor" etc.)
    and have each button set up for it's respective search data (ex. Ground button searches only "Ground Floor")

    what's the best way to accomplish this???
    Last edited by garretonufer; 09-10-2009 at 06:22 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Navigation Through spreadsheet using short cuts - not range names.

    You're post is not clear (at least to me).

    Thread title indicates you want to navigate sheets using "short cuts", but you indicate that you want to search in a column.

    Idealy i'd like the macro to search through column "B" and look for key labels (ex: "Ground Floor", "1st Floor" "2nd Floor" etc.)
    and have each button set up for it's respective search data (ex. Ground button searches only "Ground Floor")
    Please clarify exactly what you want to do.

  3. #3
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Navigation Through spreadsheet using short cuts - not range names.

    I want to search through a column to find the target location in which to go to using a short cut.

    what i'm doing now is a Range("Ground").Activate
    and that will select the desired cell on the spread sheet, allowing me to navigate throughout the spread sheet.

    So I want to do the same thing, although instead of using Range names, i want the target to be found through a search of values in column "B"

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Navigation Through spreadsheet using short cuts - not range names.

    What's in column B?
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Navigation Through spreadsheet using short cuts - not range names.

    Note that in Columb "B" there are main labels
    "Ground Floor"
    "1st Floor"
    "2nd Floor"
    and so on


    so if i have a button with a macro, i would want the button labeled "Ground Floor" to search through column "B" for "Ground Floor" and Activate that Cell.

    so that if i'm somewhere on the spreadsheet I can click on the "Ground Floor" button and it will take me to where ever the cell with the value of "Ground Floor" is.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Navigation Through spreadsheet using short cuts - not range names.

    You can do that with a formula:

    =HYPERLINK("#B" & MATCH("Ground Floor", $B:$B, 0), "GND")

  7. #7
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Navigation Through spreadsheet using short cuts - not range names.

    How do i do that in a macro?
    I am going to delete the hyperlinks on the page and make a user form that contains 9 buttons. Ground Floor, 1st Floor - 8th Floor

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Navigation Through spreadsheet using short cuts - not range names.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Navigation Through spreadsheet using short cuts - not range names.

    Thank you much. Works like a charm,

    now a curve ball, say "Ground Floor" isn't in the file (ie: it was deleted) how hard would this be to have it conditional, and generate a MsgBox if the Target text is non-existant?

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Navigation Through spreadsheet using short cuts - not range names.

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Navigation Through spreadsheet using short cuts - not range names.

    That worked like a charm. You're amazing.

    Thanks to everyone 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)

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