+ Reply to Thread
Results 1 to 8 of 8

Excel search by entering single or multiple criteria | VBA | Macros Please Help!

Hybrid View

cakeller Excel search by entering... 04-02-2016, 05:21 PM
mehmetcik Re: Excel search by entering... 04-02-2016, 05:24 PM
cakeller Re: Excel search by entering... 04-02-2016, 05:43 PM
mehmetcik Re: Excel search by entering... 04-03-2016, 12:43 AM
cakeller Re: Excel search by entering... 04-03-2016, 09:01 AM
mehmetcik Re: Excel search by entering... 04-04-2016, 05:28 PM
cakeller Re: Excel search by entering... 04-06-2016, 12:05 PM
mehmetcik Re: Excel search by entering... 04-06-2016, 09:35 PM
  1. #1
    Registered User
    Join Date
    04-02-2016
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    4

    Question Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Hello!

    I am very, very new to VBA and am trying to create a vehicle lookup document that will allow the user to search by single or multi criteria. The user just enters the information they want to search by, hit the search button and the results would show up under the search fields. For example, the user could enter a year range (1990 - 1993), Vehicle Make (Porsche) and they would see all 1990-1993 Porsche's including other information about each vehicle. The search function is on one sheet and my data is on another.

    Any help is greatly appreciated. Thank you!
    Attached Files Attached Files

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

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Hi

    Welcome.

    This is quite simple.

    But may take a few minutes.

    BRB
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    04-02-2016
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Thank you so much for taking the time to help me!

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

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Hey

    Your Data was a mess so it is taking ages.

    I liked what you were trying to do so I kind of took over.

    It is late here so I am calling it a day.

    Here is what I have so far,


    Open the workbook and run the macro SetCombo

    This does a mountain of work so may take some time. [ This Sets up the workbook ]

    Then run the Macro SelCar.

    See if you like it so far.

    I will try and finish tomorrow.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-02-2016
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    This is super cool!

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

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Ok I have something for you.


    Open the workbook and run the macro SetCombo

    This does a mountain of work so may take some time. [ This Sets up the workbook ]

    Then run the Macro SelCar.


    Don't be surprised if it has a few bugs,

    Just document the issue so I can replicate and fix it.

    The code may be slow, but that is ok.

    It is written to be easy to trap errors not for speed.

    When it is fully debugged I will modify the routine that populates the list box to speed it up.
    Attached Files Attached Files
    Last edited by mehmetcik; 04-04-2016 at 07:14 PM.

  7. #7
    Registered User
    Join Date
    04-02-2016
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Thank you, Mehmetcik! This is so amazing and you've been very helpful. I truly appreciate all your time.

    Is it pretty easy to add additional columns? For example, a column for VIN (Vehicle Identification Number) and street address. Also, I will need to update the data on a monthly basis, how big of a deal is it to update the data? I will be doing that on a monthly basis. Also, is there a way to automatically run the macro when the file is opened or maybe just link a launch button?

    Thanks again

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

    Re: Excel search by entering single or multiple criteria | VBA | Macros Please Help!

    Try this version:
    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)

Similar Threads

  1. Replies: 7
    Last Post: 06-28-2015, 10:47 AM
  2. Multiple Search Criteria produces (list) Multiple results in a single cell
    By snake007uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2014, 12:13 PM
  3. Replies: 4
    Last Post: 05-20-2014, 10:03 AM
  4. [SOLVED] How to return multiple values that match a single search criteria?
    By JSallen in forum Excel General
    Replies: 4
    Last Post: 11-28-2012, 11:49 AM
  5. Search all worksheets and paste all rows w/search criteria to single sheet
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-22-2012, 01:31 PM
  6. Allow Multiple or Single String Search Criteria Macro
    By eurydice88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2009, 02:50 PM
  7. How do I search excel spreadsheets using multiple search criteria.
    By Kasper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2005, 08:30 PM

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