The general format I use for hiding rows is
If Range("G17") = 1 Then
Range("G22:G26").EntireRow.Hidden = True
Else
Range("G22:G26").EntireRow.Hidden = False
End If
In one particular case I want the rows to hide based on an embedded value (that is calculated rather than being entered or selected). This code doesn't work. Is there anything I should add?
If Range("G17") = 1 Then
Range("G22:G26").EntireRow.Hidden = True
Else
Range("G22:G26").EntireRow.Hidden = False
End If
In one particular case I want the rows to hide based on an embedded value (that is calculated rather than being entered or selected). This code doesn't work. Is there anything I should add?