try this
Sub test2()
Dim SHTNM As String
Dim R As Long
R = 1 ' Summary Row to start paste of InProd rows from other sheets
For sht = 1 To 12 ' sheets ( 1 to 12) production sheets
SHTNM = "ProdLine" & sht
Sheets(SHTNM).Select
With Sheets(SHTNM).Range("A1", Range("A65536").End(xlUp).Address)
Set c = .Find("InProd", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
Sheets(SHTNM).Range(c.Address).EntireRow.Copy
Sheets("Summary").Cells(R, 1).PasteSpecial xlPasteAll
R = R + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
Next sht
Sheets("Summary").Select
End Sub
Bookmarks