+ Reply to Thread
Results 1 to 6 of 6

Search Function VBA

  1. #1
    Registered User
    Join Date
    05-12-2019
    Location
    Pennsylvania, US
    MS-Off Ver
    MS Office 2013
    Posts
    16

    Search Function VBA

    Hello,
    I have a worksheet that has customer information that I would like to add a search button to find information based on key words. Columns "E" through "T" are my customers information such as customer name, address, phone, alt phone, etc and I have 2000 entries. I was looking to create a User Form that searches keywords and displays them in a listbox. For example, if a customer calls and wants to update information I would like to search he customer name and then be able to view their info. Or if I am going to add a new customer to my list I would like to search if they already exist before I add a duplicate.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    9,374

    Re: Search Function VBA

    Hi CamiWami

    Welcome to the forum...There are multiple examples of this available on the forum...All you need to do is search...
    This link has two options...1 with and 1 without Listbox...Will get you started...
    https://www.excelforum.com/excel-pro...ml#post5114047
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere.....
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember......Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Search Function VBA

    I suggest you post a sample file
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    2,526

    Re: Search Function VBA

    Hi.
    The link referred to by 'sintek' includes one of my contributions.
    It contains a minor bug, simply delete the line highlighted by the de-bugger (the sheet referred to does not exist)it will then run.
    Attached another similar approach based upon similar lines, it auto-generates unique id and checks existence of new entrant.
    Start by clearing the form, the rest should be intuitive.
    torachan.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-03-2019
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Search Function VBA

    please post a sample
    Last edited by Lola_VW; 05-13-2019 at 07:02 PM.

  6. #6
    Registered User
    Join Date
    05-03-2019
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Search Function VBA

    Are you wanting to Use the clt "F" find all style of search?
    Last edited by Lola_VW; 05-13-2019 at 07:03 PM.

+ 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. Search Function - how to search for multiple items
    By niktodorov1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2018, 10:22 PM
  2. If function + Find Function to search for multiple values
    By HabsFan89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2015, 12:11 PM
  3. [SOLVED] Set VBA search function to only search one row and also not show duplicates?
    By TomToms in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-05-2014, 04:00 PM
  4. How to search 2 criteria using this search function?
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2014, 04:25 PM
  5. IF(count(search) Function not working when search from text from a cell
    By joshnathan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 05:13 AM
  6. [SOLVED] Search function to search if worksheet contains specified text
    By mougiasm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2013, 02:50 PM
  7. Replies: 1
    Last Post: 10-18-2012, 05:52 AM

Tags for this Thread

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