Hi,
I am inserting a line with the following code, but I still get an error message even though I have .displayalerts = False.
Any ideas or suggestions.
Thanks, Tim
Tim Rutherford
I am inserting a line with the following code, but I still get an error message even though I have .displayalerts = False.
Any ideas or suggestions.
Thanks, Tim
Code:
Private Sub WorkSheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
Application.DisplayAlerts = False
ActiveSheet.Unprotect password:="elephant"
Selection.EntireRow.Insert Shift:=xlDown
ActiveSheet.Protect password:="elephant"
'Application.DisplayAlerts = True 'commenting out didn't work
End Sub
Tim Rutherford