Jun 14, 2004 #1 dace Programmer Joined Jul 21, 2001 Messages 263 Location US Hi- Is there a way to delete/remove an Excel worksheet without popping up the "are you sure you want to do this" dialog? Thanks!
Hi- Is there a way to delete/remove an Excel worksheet without popping up the "are you sure you want to do this" dialog? Thanks!
Jun 14, 2004 1 #2 brucegn Programmer Joined Apr 30, 2004 Messages 20 Location US Try adding Application.DisplayAlerts = False Before the line that is actually deleting the sheet and set it back after. Application.DisplayAlerts = False Sheets(1).Delete Application.DisplayAlerts = True Upvote 0 Downvote
Try adding Application.DisplayAlerts = False Before the line that is actually deleting the sheet and set it back after. Application.DisplayAlerts = False Sheets(1).Delete Application.DisplayAlerts = True
Jun 14, 2004 #3 ilses Technical User Joined May 31, 2001 Messages 235 Location DE Application.DisplayAlerts = False Worksheets("Blad2").Delete Application.DisplayAlerts = True Best regards, Ilse Upvote 0 Downvote
Application.DisplayAlerts = False Worksheets("Blad2").Delete Application.DisplayAlerts = True Best regards, Ilse
Jun 14, 2004 Thread starter #4 dace Programmer Joined Jul 21, 2001 Messages 263 Location US Thanks, that's exactly what I needed! Upvote 0 Downvote