I am looking for some help in having a specific code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range,
Cancel As Boolean)
If Not Intersect(Target, Range("B1:B10")) 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
so that it works on many sheets in a workbook. I have scoured the internet and found a code or two for looping a code, but I'm having trouble with how the code is supposed to look within the looping code. Any help would be greatly appreciated. Thank you!!
I tried changing the Private Sub line to : Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, _ ByVal Target As Range, ByVal Cancel As Boolean) but received a Complie error: Procedure declaration does not match description of event or procedure having the same name. I'm very sorry, but I am very new to VBA and need help on how to word the code .....