P
plantechbl
I need to have a row hidden or revealed based on a value in cell A16.
I have this code in the worksheet which works fine EXCEPT it apparently
resets the Undo stack and I don't have any undo capabilities in any
workbook that is open at the time.
I simply need to hide or reveal a row based on the cell value in A16
being "None". Any help either with this code or a totally different
approach will be greatly appreciated.
Private Sub Worksheet_Calculate()
Dim rCell As Range
For Each rCell In Range("a16")
rCell.EntireRow.Hidden = (rCell.Value = "None")
Next rCell
End Sub
I have this code in the worksheet which works fine EXCEPT it apparently
resets the Undo stack and I don't have any undo capabilities in any
workbook that is open at the time.
I simply need to hide or reveal a row based on the cell value in A16
being "None". Any help either with this code or a totally different
approach will be greatly appreciated.
Private Sub Worksheet_Calculate()
Dim rCell As Range
For Each rCell In Range("a16")
rCell.EntireRow.Hidden = (rCell.Value = "None")
Next rCell
End Sub