ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,935
- Office Version
- 2007
- Platform
- Windows
I am using the code shown.
My goal is to not see the confirmation message when deleting.
The below code deletes the worksheet without the confirmation message BUT the shows me an Automation Error
If i remove the False & True lines the sheet is deleted but confirmation message is shown.
My goal is to not see the confirmation message when deleting.
The below code deletes the worksheet without the confirmation message BUT the shows me an Automation Error
If i remove the False & True lines the sheet is deleted but confirmation message is shown.
Rich (BB code):
Private Sub DeleteWorksheet_Click()
Application.DisplayAlerts = False
ActiveSheet.Delete ' THIS WILL DELETE THE GENERATED WORKSHEET THEN ONCE DELETED RETURN TO WORKSHEET INV
Application.DisplayAlerts = True
End Sub