Hi,
I have written some code in order to hide rows based on a checkbox. Initially I wrote the code to hide rows based on a value in a cell and it worked fine, however when i moved to a checkbox it did not work. I have pasted part of the code below.
Private Sub Worksheet_change(ByVal Target As Range)
ActiveSheet.Activate
If Not Application.Intersect(Range("A18"), Range(Target.Address)) Is Nothing Then
Select Case Target.Value
Case Is = "TRUE": Rows("39:47").EntireRow.Hidden = False
' Rows("39:47").EntireRow.Hidden = True
End Select
End If
If Not Application.Intersect(Range("A19"), Range(Target.Address)) Is Nothing Then
Select Case Target.Value
Case Is = "TRUE": Rows("49:57").EntireRow.Hidden = False
' Rows("59:67").EntireRow.Hidden = True
End Select
End If
Also the hide and unhide of rows never worked properly can someone please help.
Bookmarks