Gringoire
Board Regular
- Joined
- Nov 18, 2016
- Messages
- 71
- Office Version
- 365
- Platform
- Windows
Dear Gentlemen,
I'm using the doubleclick event to trig a procedure on a protected Sheet. I would like to avoid the warning message that appears when the user double click on a Cell.
I used this code but it does not work.
Could you please show mw where I'm wrong?
thanks.
I'm using the doubleclick event to trig a procedure on a protected Sheet. I would like to avoid the warning message that appears when the user double click on a Cell.
I used this code but it does not work.
Could you please show mw where I'm wrong?
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal target As Range, Cancel As Boolean)
With Application
.DisplayAlerts = False
.AlertBeforeOverwriting = False
.ScreenUpdating = False
End With
...
'here is my procedure
...
With Application
.DisplayAlerts = True
.AlertBeforeOverwriting = True
.ScreenUpdating = True
End With
End Sub
thanks.