View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones[_2_] Norman Jones[_2_] is offline
external usenet poster
 
Posts: 421
Default Removing confirmation POP from excel

Hi Singh,

It is working for me too......... Perfect.


Actually, there is a potentially significant typo!

The second instance of

.DisplayAlerts = False


should reinstate alerts.

Therefore, replace the code with:

'==========
Public Sub aTester()
With Application
.DisplayAlerts = False
ActiveSheet.Delete
.DisplayAlerts = True '<<=======
End With
End Sub
'<<==========

Normally, Excel will automatically reset
the property to true when the code finishes,
but there could be repercussions with cross
processing code.

Apologies for the typo!


---
Regards.
Norman