Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for a list of key words 2

Status
Not open for further replies.

Swi

Programmer
Feb 4, 2002
1,968
US
What is the best way to search for a list of key words in several columns and if found move the matched records to a new spreadsheet? Thanks.

Swi
 


Hi,

I'd make a table of the strings to find.

Loop thru the table and use the Find method locate. When found, then cut and paste.

What code do you have so far?



Skip,

[glasses]Have you heard that the roundest knight at King Arthur's round table was...
Sir Cumference![tongue]
 
Although this was set up using a form in MS-Access with VBA for Access, the vba part may work for your purpose...

I have a text box on the form and the user enters the keyword, could even be a partial "SAN" would bring up any records that have San in it like San Francisco, San Jose, Santa Clara regardless of which field they reside in.

Global Search and Filter
thread702-1213703
 
That is exactly the method I was thinking as a result of recording a macro Skip. I just didn't know if there was a more efficient way. Thank you both for the tips.

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top