+ Reply to Thread
Results 1 to 10 of 10

search named ranges with user input

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    Mustang, OK
    MS-Off Ver
    Excel 2003
    Posts
    5

    search named ranges with user input

    I need some serious help!!

    right now I have a combo box that you are able to select a named range and it will highlight that named range. The problem I have is the combo box list is lonnnngggg.

    I wanted to know if it is possible to allow a user to input a named range and have it do the same thing, thus eliminating the long combo box list.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: search named ranges with user input

    How would one know what the range names are?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    Mustang, OK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: search named ranges with user input

    okay I will break this down for ya.

    I have a bunch of 6x6 squares. Each one of those has a named range.

    Basically I'm making a township/range map of the metro area in my state.

    I don't know if your familiar with township/ranges but each township/range has 36 sections, thus my multiple 6x6 squares which are broken down into named ranges

    named range = township/range

    I locate underground facilities and I am part of a district that has 9 supervisor groups. I am attempting to make a sheet that dispatch can use. They will take the township range from the One Call Dig center ticket, input it in text box and then it will highlight that township/range.

    each superisor group will be color coded and have certain township/ranges assigned to them, thus when it finds the named range they will know what supervisor to dispatch the ticket to.

    Right now I am able to do this, but through the use of a combo box. I was trying to eliminate them having to choose the correct township/range from a long list.

    Does that make sense or just make things worse....ha ha

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

    Re: search named ranges with user input

    If the naming convention is based on information that the user knows then they can type into a textbox
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    01-12-2011
    Location
    Mustang, OK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: search named ranges with user input

    EXACTLY!!

    Now the info the user inputs in the textbox is a named range.

    they enter a township/range - 04WI10N14NE

    it will then highlight that named range ( which will be a 6x6 square )

    I need to know if that is possible and where to look for help doing that. I have searched and searched and only thing I can find is that you can search a cells data doing this, but nothing on if you can search a named range.

  6. #6
    Forum Contributor TechRetard's Avatar
    Join Date
    06-14-2009
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: search named ranges with user input

    could you just use conditional formatting on your 6x6 square...if user enters "xyz" in cell A1 (or w/e cell) then highlight me, else not...do it for each square?

  7. #7
    Registered User
    Join Date
    01-12-2011
    Location
    Mustang, OK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: search named ranges with user input

    No I don't believe I can becuase each 6x6 square is broken up in 36 squares, each square with a different number.

    I've attached the sheet i'm working on, keep in mind this is far from complete, but it will give you an idea of what the sheet looks like and what i'm trying to accomplish...

    as the sheet is now you select the township/range from the combo box and it highlights the 6x6 square according to the named range.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: search named ranges with user input

    User inputs a named range in B112 and presses the "Go" button:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-12-2011
    Location
    Mustang, OK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: search named ranges with user input

    it is getting hung up at this line

    .TintAndShade = 0

    the error states "Can't execute code in break mode"

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: search named ranges with user input

    Sorry, I'm using xl2007 I guess 2003 doesn't like the interior color and format. Replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    or delete it altogether, I just used it to highlight the selected block for convenience...

+ 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