Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How can I suppress prompts during macro run?
I created a macro which in which I delete a sheet (tab). During the run I get
a prompt if I want to delete the sheet. How can I build in that I don't get a prompt or that I can answer automatically? I have the same problem when saving. I overwrite an existing file and I'm prompted if I want to overwrite, which I want. How can I suppress these prompts or answer automatically? Thank you for helping me out on this!! Andor |
#2
|
|||
|
|||
How can I suppress prompts during macro run?
Precede the delete with
Application.Displayalerts = False and reset to True afterwards -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Andorv" wrote in message ... I created a macro which in which I delete a sheet (tab). During the run I get a prompt if I want to delete the sheet. How can I build in that I don't get a prompt or that I can answer automatically? I have the same problem when saving. I overwrite an existing file and I'm prompted if I want to overwrite, which I want. How can I suppress these prompts or answer automatically? Thank you for helping me out on this!! Andor |
#3
|
|||
|
|||
How can I suppress prompts during macro run?
Thanks a lot Bob!!
"Bob Phillips" wrote: Precede the delete with Application.Displayalerts = False and reset to True afterwards -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Andorv" wrote in message ... I created a macro which in which I delete a sheet (tab). During the run I get a prompt if I want to delete the sheet. How can I build in that I don't get a prompt or that I can answer automatically? I have the same problem when saving. I overwrite an existing file and I'm prompted if I want to overwrite, which I want. How can I suppress these prompts or answer automatically? Thank you for helping me out on this!! Andor |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Help with macro looping and color query function | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) | |||
Macro and If Statement | Excel Discussion (Misc queries) |