ThrottleWorks
Excel Ninja
Hi,
I want to find a string in the entire workbook. Following code helps finding only in one sheet.
The string might be present in any sheet, so I have to search the entire workbook.
For example, I have 20 sheets in a book but I am not sure in which sheet the string is present. So need to search till I get result.
Can anyone please help me in this.
I want to find a string in the entire workbook. Following code helps finding only in one sheet.
The string might be present in any sheet, so I have to search the entire workbook.
For example, I have 20 sheets in a book but I am not sure in which sheet the string is present. So need to search till I get result.
Can anyone please help me in this.
Code:
On Error Resume Next
Cells.Find(What:=Class, After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
On Error GoTo 0