tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi there,
I have check boxes in column L (L20:L64) which I would like to be hidden, when the row is hidden. Currently all the check boxes are clustering together on L65 when any rows are hidden.
The rows start off as being hidden and once data is entered in column B, the row below is unhidden with this VBA coding..
Is there a VBA code that can hide the checkboxes when the row is hidden? Move and Size with Cells is not an option on the checkbox. The checkboxes are linked to column M which returns a true/false depending on whether it is ticked.
Thank you for your time!
I have check boxes in column L (L20:L64) which I would like to be hidden, when the row is hidden. Currently all the check boxes are clustering together on L65 when any rows are hidden.
The rows start off as being hidden and once data is entered in column B, the row below is unhidden with this VBA coding..
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Set rng = Intersect(Target, [B19:B64,B84:B129])
If Not rng Is Nothing Then rng(2, 1).EntireRow.Hidden = False
End Sub
Is there a VBA code that can hide the checkboxes when the row is hidden? Move and Size with Cells is not an option on the checkbox. The checkboxes are linked to column M which returns a true/false depending on whether it is ticked.
Thank you for your time!