+ Reply to Thread
Results 1 to 4 of 4

Query via Userform

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    8

    Query via Userform

    I created a userform with comboboxes (three of them) - they're drop downs. I would like to query the main sheet (sheet1). I've been researching this forever and the only things I see are about adding to the sheet etc.

    For example, one colum of the sheet is colors (C). One of the comboboxes has a list of colors, and so on. Once you make all three choices in the drop downs and click search (command buttom), the entire row is pulled and placed into a new sheet (I have the code for opening the new sheet). Obviously, each combo box would have to be linked to the correct column (C for combox one, etc.).

    Can this be done at all? I would think this is one of the reasons userforms were created (to query and add data). If it can't be done let me know and I'll scrap this thing.

    Thanks,

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Query via Userform

    JKoo1,

    Yes this can be done. Using the Range.Autofilter method might be a good place to start.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Query via Userform

    Ok
    I have no idea what you are trying to acheive,

    So I have created a userform that shows colors in comboboxes.

    I know I can improve it to display the color palette and will do so now,

    But in the meantime,

    Enjoy
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Query via Userform

    Ok
    This version throws up a color palette if you click on the top left.
    Enjoy.
    Attached Files Attached Files

+ 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