This is my first ever post.
I have a spreadsheet that has a lot of check boxes in sets of two. When printed it is hard to tell what is checked. I have redone the sheet and replaced the check boxes with empty cells. I also have a VBA code that will enter a check mark when a cell is double clicked. Is it possible to make excel toggle between two cells when one is double clicked or delete the check mark in the other cell when the other is double clicked? Act like a check box. Below is the VBA code i am currently using.
Thanks in advance. This site has been a saving grace for me many times.
Gasdude
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("A17:A30, B17:B30, K17:K18, K20:K30, L17:L18, L20:L30, AF20:AF21, AF34:AF35")) Is Nothing Then
Application.EnableEvents = False
If ActiveCell.Value = ChrW(&H2713) Then
ActiveCell.ClearContents
Else
ActiveCell.Value = ChrW(&H2713)
End If
Cancel = True
End If
Application.EnableEvents = True
End Sub
I have a spreadsheet that has a lot of check boxes in sets of two. When printed it is hard to tell what is checked. I have redone the sheet and replaced the check boxes with empty cells. I also have a VBA code that will enter a check mark when a cell is double clicked. Is it possible to make excel toggle between two cells when one is double clicked or delete the check mark in the other cell when the other is double clicked? Act like a check box. Below is the VBA code i am currently using.
Thanks in advance. This site has been a saving grace for me many times.
Gasdude
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("A17:A30, B17:B30, K17:K18, K20:K30, L17:L18, L20:L30, AF20:AF21, AF34:AF35")) Is Nothing Then
Application.EnableEvents = False
If ActiveCell.Value = ChrW(&H2713) Then
ActiveCell.ClearContents
Else
ActiveCell.Value = ChrW(&H2713)
End If
Cancel = True
End If
Application.EnableEvents = True
End Sub