hedcase10x
New Member
- Joined
- Nov 8, 2018
- Messages
- 4
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("C13:C150,D13:D150,H13:H150")) Is Nothing Then
Application.EnableEvents = False
If Target.Value = ChrW(&H2713) Then
Target.ClearContents
Cancel = True
Else
Target.Value = ChrW(&H2713)
Cancel = True
End If
End If
Application.EnableEvents = True
End Sub
i need to make the above code have a condition where column c fields will clear if column d adjacent field is not clear.....the above code puts a check mark in the field if i double click it....so if i double click c13...and d13 already has the check mark...double clicking c13 will clear d13 and so on
can anybody show me how to accomplish this ?
If Not Intersect(Target, Range("C13:C150,D13:D150,H13:H150")) Is Nothing Then
Application.EnableEvents = False
If Target.Value = ChrW(&H2713) Then
Target.ClearContents
Cancel = True
Else
Target.Value = ChrW(&H2713)
Cancel = True
End If
End If
Application.EnableEvents = True
End Sub
i need to make the above code have a condition where column c fields will clear if column d adjacent field is not clear.....the above code puts a check mark in the field if i double click it....so if i double click c13...and d13 already has the check mark...double clicking c13 will clear d13 and so on
can anybody show me how to accomplish this ?