Deleting Excel Worksheets with macro
5 pts.
0
Q:
Deleting Excel Worksheets with macro
I am using excel 2000 and have workbook that uses macro to delete several worksheets and then save the workbook under a name in one of the cells. All works fine but for each worksheet a quiery pops up to ask if you want to delet this sheet. How do I delete sheets in the macro without having this pop up window?
ASKED: Nov 21 2008  0:38 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
30 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Look under macro ... there will be MsgBox command. (this is the message that pops up)
Try commenting out the MsgBox command.
You then also need to adjust accordingly the corresponding Event/Cancel response to the pop up.

I have Excel 2007 (but Excel 2000 should work similarly)

Hi
How about adding ...
Application.DisplayAlerts = False
Your code
Application.DisplayAlerts = True
Last Answered: Dec 31 2008  7:09 AM GMT by 5485   30 pts.
Latest Contributors: SbElectric   1600 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0