One example:
Sub test()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Sheets(Array("Sheet2", "Sheet3", "etc")) 'change sheet names
With ws.Rows("24:32") 'subprocedure to hide the rows you want, toggle in this example
.Hidden = Not .Hidden 'or, True for hide, False for unhide
End With
Next ws
End Sub
Where you change to the correct sheet names and the code will only loop through those sheets. Then add a subprocedure for hiding/unhiding rows. Another alternative is to loop through all worksheets and only do a subprocedure on those with the specific worksheet names or that match the structure on the sheet you are looking for, etc.
Hope this helps a bit,
berlan
Bookmarks