Ok H
I see you are stuck so I'll look at this for you.
I need more information on this format:-
"####-#[A,B,C]*"
the # is probably a number
What do these mean?
A,
B,
C,
What does * mean?
I will write the bulk of the code for you and fine tune tomorrow.
The plan is that you put my spreadsheet into the same folder as the workbooks you want analysed
Opening the workbook will run the macro and the macro will search every workbook and every sheet
A summary sheet will created where
Column A to list the workbook in which the text appears
Column A to list the sheets in which the text appears
Column C to list the cell in which the text appears
Column D to list the exact contents of that cell.
Columns E to N will contain the data from the 11 cells following the target cell.
Ok wish Me Luck
Ok we have something to play with.
There are two files attached.
Searcher.xlsm is the macro
Book1.xlsx is a sample
put them into the same folder and open searcher.
For now I have given you a button to push, tomorrow I will set it to run automatically.
Look at the results page. All it has is a row of titles
click on the button.
view the results.
create more versions of book1 with different names different numbers of sheets etc
all in the same folder.
click on the button.
the code for the macro is:-
However the killer part is quite simple:-
Thats the bit that may need fine tuning.
If the flag is true after that lot we save data
But you can see how easy it is to refine our search.
Bookmarks