Enter the following code in the Worksheet module of the Input sheet. To open this module, in Excel, right click on the Input tab, and select view code. Enter the following code. Let me know if it works properly.
Private Sub Worksheet_Calculate()
Dim ws As Worksheet
Dim fnd As Range
Dim lRow As Long
Const fndVal As String = "AutoHide"
Application.ScreenUpdating = False
For Each ws In Worksheets
If ws.Name <> "Input" Then
On Error Resume Next
Set fnd = ws.Cells.Find(fndVal)
On Error GoTo 0
If Not fnd Is Nothing Then
ws.Rows.Hidden = False
lRow = ws.Cells(Rows.Count, fnd.Column).End(xlUp).Row
For i = lRow To fnd.Row Step -1
If ws.Cells(i, fnd.Column) = 0 Then
ws.Rows(i).Hidden = True
End If
Next i
End If
End If
Next ws
Application.ScreenUpdating = True
End Sub
Bookmarks