Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Application.Intersect(Target, Range("a1:z10000")) Is Nothing Then
Application.ScreenUpdating = False
MsgBox ("C'est un seul clic !" & nbcel)
CreateObject("wscript.shell").SendKeys "{ESC}" 'Gérard
Application.ScreenUpdating = True
Exit Sub
End If
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Not Application.Intersect(Target, Range("a1:z10000")) Is Nothing Then
Application.ScreenUpdating = False
MsgBox ("C'est un clic gauche !" & nbcel)
CreateObject("wscript.shell").SendKeys "{ESC}" 'Gérard
Application.ScreenUpdating = True
Exit Sub
End If
End Sub