+ Reply to Thread
Results 1 to 7 of 7

Userform with Multiple Searches

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Userform with Multiple Searches

    Hi all,

    Could anyone offer me some help with what in principle looks like a simple task....

    I've got a workbook which i've added a userform to, which allows the user to search for 1 or more fields on the click of a command button. I would like the search result rows to appear on a seperate worksheet.

    I would also like the dropdown boxes on this userform to show only unique info, not multiples of the same entries.

    I have attached my basic workbook below and would be very grateful for any help anyone can give.

    Cheers, Busby

    Car Stock List.xls

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Userform with Multiple Searches

    Try these 2 new bits of code:-
    Please Login or Register  to view this content.
    Regrds Mick

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Userform with Multiple Searches

    That's brill Mick, works a treat. Any chance you can explain to me how it all works??? If i've got a larger spreadsheet with many more columns which i'd like to search also, how would the code differ ??
    Last edited by Cutter; 08-15-2012 at 01:50 PM. Reason: Removed whole post quote

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Userform with Multiple Searches

    Have a look at the remarks in the code below:-
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Angry Re: Userform with Multiple Searches

    Thanks once again Mick, made it a bit clearer for me, but when i've tried to use the code on my actual table it's not returning anything. I've attached the file once again, but i've incuded the actual table and userform i'm trying to create (with all the sensitive data etc removed).
    Is there any chance that you could give it the once over and see what my issue is ??? As you will see quite a few of the fields in the table are blank and not all of the columns are on the userform for the user to search with. Also, i'm wanting to use textbox's as well as combo box's.

    With regards to the displaying of only Unique values in the combo box, is there anyway to not have the blanks show up in the combo box drop down list??

    Sorry for all the questions, quite a bit of a newbie i'm afraid.

    Cheers Busby

    Car Stock List.xls
    Last edited by busbybantam; 08-16-2012 at 11:03 AM.

  6. #6
    Registered User
    Join Date
    08-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Userform with Multiple Searches

    Quote Originally Posted by busbybantam View Post
    Thanks once again Mick, made it a bit clearer for me, but when i've tried to use the code on my actual table it's not returning anything. I've attached the file once again, but i've incuded the actual table and userform i'm trying to create (with all the sensitive data etc removed).
    Is there any chance that you could give it the once over and see what my issue is ??? As you will see quite a few of the fields in the table are blank and not all of the columns are on the userform for the user to search with. Also, i'm wanting to use textbox's as well as combo box's.

    With regards to the displaying of only Unique values in the combo box, is there anyway to not have the blanks show up in the combo box drop down list??

    Sorry for all the questions, quite a bit of a newbie i'm afraid.

    Cheers Busby

    Attachment 174627
    Can you help with the above post Mick ???

  7. #7
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Userform with Multiple Searches

    There appeared to be a misalignment between the Columns "Ac" number and the Array "Ray", "Ac" number.
    Try this:-
    Please Login or Register  to view this content.

+ 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