ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Perform Cell Value Find across ALL Sheets (https://www.excelbanter.com/excel-programming/364785-perform-cell-value-find-across-all-sheets.html)

Corey

Perform Cell Value Find across ALL Sheets
 
Is it possible to create a find, by macro, to find ALL sheets with a
Cell(A3) value that matches a Msg Box value?
There could be 100 sheets.

Corey....



John[_88_]

Perform Cell Value Find across ALL Sheets
 
Hi Corey,

Have a go with the code below.

Best regards

John


Sub FindInAllSheets()
Dim wks As Worksheet
For Each wks In Application.ActiveWorkbook
If wks.Cells(3, 1).Value = "MySearch" Then
MsgBox ("Found")
End If
Next wks
End Sub


"Corey" wrote in message
...
Is it possible to create a find, by macro, to find ALL sheets with a
Cell(A3) value that matches a Msg Box value?
There could be 100 sheets.

Corey....





All times are GMT +1. The time now is 04:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com