Searching a database in excel

  • Thread starter Thread starter kylev96
  • Start date Start date
K

kylev96

I have attached a simple database search for excel. What it does is
searches a list of questions and answers in Sheet2 and returns matching
results in a listbox in a userform.

It works fine, however I'd like to change it to do the following:
instead of only being able to searhc the question, I'd like it to
search both the question and the answer, but still only return the
question in listbox 1 and the answer in textbox2.

Here's an example:

If the data is as follows (in Sheet 2, different columns):

Q: Who is playing in the NBA finals?

A: The Detroit Pistons and the San Antonio Spurs.

I'd like search querys entered such as: NBA, NBA Finals, Detroit
Pistons, Spurs, etc. all to return just "Who is playing in the NBA
finals" under search results, upon clicking they will recieve the
answer under "answer". I'm trying to allow cusomters to search for any
topic/phrase, and few FAQ's on them.. May sound confusing, but it's
probably a simple range modification, I just can't figure it
out...thanks and I appreciate it!


+-------------------------------------------------------------------+
|Filename: simple search form.ZIP |
|Download: http://www.excelforum.com/attachment.php?postid=3470 |
+-------------------------------------------------------------------+
 
Search the archives for "Find". There have been many replies on using this
is VBA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top