This is a follow up to the tutorial "Fast Search Entire Excel Workbook & Return All Results" (which was fabulous, btw). Is there a way to amend the VBA to search any field for the value entered into C3/Search value?
This is a follow up to the tutorial "Fast Search Entire Excel Workbook & Return All Results" (which was fabulous, btw). Is there a way to amend the VBA to search any field for the value entered into C3/Search value?
Hello AnneD,
May 12 - attached file updated (Rev-2)
In the attached file I have written some new code which I think does what you are looking to do (if I understand you correctly)
Here's how it works:
On the "Dashboard 2" sheet, in cell "C4" enter whatever it is you want to search for. It can be any value from any column - an ID, a Name, or a number. Click the "Search" button and it will populate the "Dashboard 2" with all results from all worksheets. There is COnditional Formatting so where the matches are found the cell is highlighted. And, of course, clicking "Clear" deletes all data. This code also allows for changing the number of columns on the sheets (add / delete) without having to modify the code. Also, the number of columns on each sheet can be different.
If this solves things please mark my answer as Selected.
If you were hoping for something else let us know and we will work on it.
Cheers :-)
For Each ws In Sheets(Array("Jan", "Feb", "Mar", "Apr"))
For Each ws In Worksheets
If ws.Name = "Dashboard" Or ws.Name = "Dashboard 2" Then GoTo Skip
Worksheets(wsName).Range("A" & Rw & ":M" & Rw).Copy
Worksheets(wsName).Range("A" & Rw & ":" & LCletter & Rw).Copy