Morning all,
I've banged my head against this problem for the last week and I'm sure I'm either inches or thousands of miles away from the solution
I have a workbook with multiple sheets and need to create a VBA script to search for one or more text strings across all the sheets - the answers may be in any of the columns on the data sheets.
I then need to return the answers (in the form of the contents of the first 4 cells in the row the string has been found in) to a different sheet within the same workbook (too many likely positive results for a message box or other userform based return system) and somewhere along the way remove any duplicate returns.
I can kinda bludgeon VBA into coughing up the whole row, but with duplicates..but can't get beyond that.
The additional complication is that the cell(s) that any 'find' function finds my search string(s) in may be in any column of the data.
I have been smart enough to make the first column of every sheet a unique key (unique to the sheet and the row on that sheet)...if that helps.
I'm running Excel 2003 (and VBA6).
Any help would be greatly appreciated - even just some good pointers for me to play with would be a good start lol
Thanks
Antony
I've banged my head against this problem for the last week and I'm sure I'm either inches or thousands of miles away from the solution
I have a workbook with multiple sheets and need to create a VBA script to search for one or more text strings across all the sheets - the answers may be in any of the columns on the data sheets.
I then need to return the answers (in the form of the contents of the first 4 cells in the row the string has been found in) to a different sheet within the same workbook (too many likely positive results for a message box or other userform based return system) and somewhere along the way remove any duplicate returns.
I can kinda bludgeon VBA into coughing up the whole row, but with duplicates..but can't get beyond that.
The additional complication is that the cell(s) that any 'find' function finds my search string(s) in may be in any column of the data.
I have been smart enough to make the first column of every sheet a unique key (unique to the sheet and the row on that sheet)...if that helps.
I'm running Excel 2003 (and VBA6).
Any help would be greatly appreciated - even just some good pointers for me to play with would be a good start lol
Thanks
Antony