+ Reply to Thread
Results 1 to 3 of 3

Userform and multiple search criteria with drop down validation for 2003.

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2007
    Posts
    125

    Userform and multiple search criteria with drop down validation for 2003.

    I need help from the experts on user forms and multiple search criteria for 2003 excel. The If and and Statement does not work in 2003. When I am back tracking records and searching for mistakes, I look for a specific product. I have three criteria I am searching for. (Size)(Description)and(Set)…..I have Three drop down boxes in the user form2(Highlight Specific Cup) which will select the cup I am looking for. Then I have a command button (Highlight Specific Part) in the user form that should execute the code for the desired results.

    On the history sheet, The (size) will be in column A, The (Description) will be in column B, and The (Set) will be in column C. If all three of those criteria match in the same row, I want the row (A:H) to be selected. It should select all the rows that match those criteria on the sheet. I thought about highlighting them, but that would be more of a nuisance, since I would want to change the highlight back to the original format, so it would be better if it just actively selected the row/range, then when I finished, I could just stop the selection and move on to another specific product I was looking for.

    This project is a bit beyond my abilities and I would need someone’s help. In userform1, there is a similar code that sums the number of scrap parts for a single product using the same drop down validation and search criteria if that helps. The original writer said he achieved it with the debug.print method, something I am not sure how to use either.

    If you have any questions please ask.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Userform and multiple search criteria with drop down validation for 2003.

    This use the Autofilter to select the row(s)

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    06-28-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Userform and multiple search criteria with drop down validation for 2003.

    That solution is working perfectly on my 2007 application. I won't be able to test at work until next week. I thank you for the effort. I have never even heard of or seen a code quite like that one.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2003 VBA Search using Multiple Criteria
    By cazantheman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2013, 03:46 PM
  2. Search by Multiple Criteria, Put All Results into Drop Down List
    By Jeff C in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2012, 02:54 PM
  3. creating VB code using advanced search criteria with multiple data validation lists?
    By Jonathan Bay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2011, 09:56 AM
  4. Userform Search Criteria
    By timarcarze in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-14-2011, 11:35 PM
  5. Replies: 16
    Last Post: 08-25-2005, 11:05 AM

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