Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Close Excel file without prompting user to save

I'm sure you're right, Tom ... my memory's not what it used to be!

Regards,

Vasant

"Tom Ogilvy" wrote in message
...
Hello Vasant,

Believe you are thinking of overwriting a file.

Application.displayAlerts = False
thisworkbook.SaveAs Filename:="C:\MyFolder\MyExistingFilename.xls"
Application.DisplayAlerts = True

In xl2003 help, at least, they point this exception out.


--
Regards,
Tom Ogilvy

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Hi Tom:

I'm probably wrong <g, but I seem to remember that this is the one case

in
which Excel does not perform the default action (despite what Help

says).

Regards,

Vasant

"Tom Ogilvy" wrote in message
...
Just a heads up for consideration:
I didn't test this particular case, but help says displayalerts =

false
pursues the default action of the dialog.
Using displayalerts would suppress the prompt, but the default action

would
be taken and that is to save the file.

--
Regards,
Tom Ogilvy



"Darrin Henshaw" wrote in message
...
Set Application.DisplayAlerts to False, to not show the save changes
dialog box. However, that will stop Excel from prompting it, but

still
give the user the ability to save it. You might want to look at the
BeforeSave event, to try to stop them from saving.




*** Sent via Developersdex http://www.developersdex.com ***








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
File closes without prompting to save freyabeads Excel Discussion (Misc queries) 0 March 1st 06 01:00 PM
calculation - prompting to save when file closes lpj Excel Discussion (Misc queries) 0 February 14th 06 08:27 PM
File close excel does not ask me to save changes Cathy Humphreys Excel Discussion (Misc queries) 2 June 13th 05 08:48 PM
Save CSV File without prompting Chris Excel Programming 3 September 23rd 04 04:33 PM
Save file without prompting andym Excel Programming 1 February 20th 04 02:11 PM


All times are GMT +1. The time now is 09:14 AM.

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

About Us

"It's about Microsoft Excel"