When I first open up the Excel file, as well as after I click on a button to import additional sheets into the file, the BeforeDoubleClick event works (it adds 'ticks' to cells so the user can see how far they have got in a process). However, it fails to work after I have run additional further code during the process. I have tried changing the Cancel to both True and False but that makes no difference. I also tried to 'call' the event after the additional code, but again, it fails to work.
Here is the BeforeDoubleClick code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("T4, T11, T17, T26, T30, T39, T43, T48")) Is Nothing Then
' Application.EnableEvents = False
If ActiveCell.Value = ChrW(&H2713) Then
ActiveCell.ClearContents
Else
ActiveCell.Value = ChrW(&H2713)
End If
Cancel = False
End If
' Application.EnableEvents = True
End Sub
The code to call the event at the end of the next code is run:
Call Sheets("Front_Page").Worksheet_BeforeDoubleClick(Nothing, False)
Help most gratefully received, thanks.
Call Sheets("Front_Page").Worksheet_BeforeDoubleClick(Nothing, False): asTargetis nothing, nothing will happen.