+ Reply to Thread
Results 1 to 6 of 6

Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Smile Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

    Morning everyone,

    I am still a newbie in Excel so I would like to request your help in solving a problem. Currently I am working on a data entry form for CRM database using Excel. Now i am stuck at filtering and displaying the data from the spread sheet to the user form.

    There are three text boxes to key in the filter criteria and a button which will filter the data from the spreadsheet based on the criteria in the three text boxes. Then the whole row where the filtered data resides will be displayed on text boxes on the user form.

    Your help is much appreciated. Thank you.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

    Hi, Revolversus2,

    Currently I am working on a data entry form...
    Do you mind to share the form and the code you have so far as well as some data in a sample workbook?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

    Thank you HaHoBe. Here's the form and code as per request. To bring up the user form, just click on any empty cell on the Sheet1.
    Attached Files Attached Files
    Last edited by Revolversus2; 04-17-2014 at 11:40 PM.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

    Hi, Revolversus2,

    There are three text boxes to key in the filter criteria and a button which will filter the data
    Which form are we talking about (I think UserForm1), what controls for the choice (I´d expect at least ComboBox1 and TextBox2 but I´m not sure about the third one as well as the CommandButton) as now the whole form is filled.

    Maybe have a look at http://www.excel-it.com/excel_databaseform.html: you make a choice, the result is displayed in a listbox and by making a choice you can display the information in textboxes.

    Ciao,
    Holger
    Last edited by HaHoBe; 04-17-2014 at 11:52 PM.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

    Sorry for being vague. The form is indeed UserForm1.
    User needs to enter two keywords into two textboxes, criterion1 and criterion2 (the two text boxes at the bottom) and by clicking on the Search button, the form will search the spread sheet for cells containing the keywords and display the whole row on the text boxes and combo boxes inside the group box labelled "Organizational Detail".

    I was planning to include another text box, criterion3 so that the user can filter results using up to three key words.

  6. #6
    Registered User
    Join Date
    03-18-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Filter Using User Form & Display the Whole Row of the Search Result on the Text boxes

    Hi HaHoBe,

    Thank you very much for the link. It helps to solve my problem ^^

+ 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. how to use VBA to search and return search result in the user form
    By pearlynie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2013, 07:58 AM
  2. [SOLVED] user form question: text box to display result
    By BigPig in forum Excel General
    Replies: 0
    Last Post: 02-27-2006, 08:40 PM
  3. user form question: text box to display result
    By BigPig in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2006, 04:20 PM
  4. How to display =x/y result in a user form
    By AndyRoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2005, 10:45 AM
  5. how do i display a value in a user form as a result of a selectio.
    By ptoddx1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2005, 01:06 PM

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