Hi everyone,
I don't know much about VBA, but I am trying to hide rows on multiple sheets without having to go through each sheet and run the macro. Here is my code:
Sub HideRows()
Dim cell As Range
For Each cell In Range("A1:A30")
If UCase(cell.Value) = "NO" Then
cell.EntireRow.Hidden = True
End If
Next
End Sub
And I want to run this on sheets 1, 27, 28, 31, 32, 37, 38, 39, and 45.
Thank you for you help!
I don't know much about VBA, but I am trying to hide rows on multiple sheets without having to go through each sheet and run the macro. Here is my code:
Sub HideRows()
Dim cell As Range
For Each cell In Range("A1:A30")
If UCase(cell.Value) = "NO" Then
cell.EntireRow.Hidden = True
End If
Next
End Sub
And I want to run this on sheets 1, 27, 28, 31, 32, 37, 38, 39, and 45.
Thank you for you help!