I'm using VBA to hide certain rows when a checkbox is clicked. It appears to work ok, but It's leaving a checkbox behind.
checkbox.png
Here is the code I'm using. Maybe RowHeight isn't the best route?
![]()
Private Sub Rows_Collapse_Click() If Rows_Collapse.Value = True Then Me.Range("C92:I95").RowHeight = 0 Else Me.Range("C92:I95").RowHeight = 17 End If End Sub
Bookmarks