Jun 14, 2004 #1 dace Programmer Jul 21, 2001 263 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 Apr 30, 2004 20 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 May 31, 2001 235 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 Jul 21, 2001 263 US Thanks, that's exactly what I needed! Upvote 0 Downvote