Hi, im trying to get this code to work so that when any cell in a range is edited, the checkbox with that particular name will uncheck. I've been unable to get it to work so far and was wondering if anyone saw anything I should adjust.
VBA Code:
Private Sub Worksheet_Change_Ctuit(ByVal Target As Range)
Application.EnableEvents = False
Dim ws As Worksheet: Set ws = ThisWorkbook.ActiveSheet
'--> Modify rng to suit
Dim rng As Range: Set rng = ws.Range("A1:A2")
'--> Modify the string to your Check Box number or exact name
Dim cbox As String: cbox1 = "Ctuit"
If Not Application.Intersect(rng, Range(Target.Address)) _
Is Nothing Then
ws.CheckBoxes(cbox1).Value = -4146
End If
Application.EnableEvents = True
End Sub