Hello,
As I work with data, sometimes i need to search 1 specific record or a word in a cell.
I recently found a Marco that search a *word* in multiple Excel files in a specific File folder.
This save me a lot of time opening each individual XLSX file and use the CTRL+F (find function).
But it isn't that user friendly, U have to open VBA before u run it and change the 'search word' manually.
All the cells that contains that word are returned then with the file names and the specific cell adresses.
What i would like is, that if u run the macro:
1) u get a pop up where u have to type in the word to find.
+ Hit a button that says 'search'
2)then u have to choose a File Folder where the macro/search has to be run (this is already implemented).
But the macro doesn't search in subfolders, i don't know if this is possible.
*note* that im not an experienced user of VBA and Macro applications in EXCEL;
I can get the bigger picture, but the details are not my kind of expertise.
It would be great if i got some advice how to make these changes !!
Thanks in advance!!
Example file:
I've added a simple example:
So if go to step into macro, i adapt the search string, here now KIWI27.
and hit RUN, the macro opens a file explorer screen where i can select the designated folder, where a multiple workbooks saved.
The Macro will look in each Workbook searching for the string.
All the result are than stored and shown in a new sheet. (see sheet2)
Like mentioned, i would like a pop up box where i can add the search string, then hit ok, then the designated folder must be selected.
the result that are created in a new sheet is fine for me.
the code is as follows:
![]()
Please Login or Register to view this content.
Bookmarks