Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andorv
 
Posts: n/a
Default 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   Report Post  
Bob Phillips
 
Posts: n/a
Default 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   Report Post  
Andorv
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


All times are GMT +1. The time now is 04:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"