Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default suppressing auto-dailog boxes

I have a macro which creates and saves an excel file with a particular name.
If the macro is run again Excel will ask if I want to overwrite the file.

Is there any way to suppress the dialog so the file is saved anyway? (If I
try to delete the file first, Excel asks whether I want to to delete it - so
effectively same problem!).

I have several similar situations where I do not want the user to need to
intervene, but don't know a way to suppress such dialog boxes.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default suppressing auto-dailog boxes

Precede the save with
Application.DisplayAlerts = False

"Chas" wrote in message
...
I have a macro which creates and saves an excel file with a particular

name.
If the macro is run again Excel will ask if I want to overwrite the file.

Is there any way to suppress the dialog so the file is saved anyway? (If I
try to delete the file first, Excel asks whether I want to to delete it -

so
effectively same problem!).

I have several similar situations where I do not want the user to need to
intervene, but don't know a way to suppress such dialog boxes.



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
How to stop a Smart Tag Login Dailog box when excel opens R. S. Excel Discussion (Misc queries) 0 January 13th 07 02:10 PM
Auto Adjusting Text Boxes? Jae New Users to Excel 1 August 12th 05 04:38 AM
How to depress confirmation dailog Irshad Alam Excel Programming 1 July 5th 05 07:54 AM
Check boxes - when one box is checked, I want a 2nd box to auto ch Russell-stanely Excel Discussion (Misc queries) 2 July 1st 05 08:52 PM
Question on Input Boxes and Auto-Filter golf4 Excel Programming 5 March 7th 04 04:10 AM


All times are GMT +1. The time now is 03:47 PM.

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"