Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default closing file without saving

workbooks("masterdata - 2009.xls").close savechanges:=false



Novice Lee wrote:

How can I close a file without saving the file automatically.
I use the following code for closing the file:
Windows("MasterData - 2009.XLS").Activate
ActiveWindow.Close

is any thing I can add to it or change so I don't get the "Do you want to
say" box? I never want to save the file.

Thanks


--

Dave Peterson
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
auto saving & closing file prtcorvette Excel Worksheet Functions 1 May 21st 08 10:06 PM
Auto saving & closing a file after inactivity [email protected] Excel Programming 1 September 20th 06 12:59 PM
skipping pop up box for saving changes when closing a file Tony Excel Programming 1 October 1st 04 07:49 PM
closing a file without saving matt dunbar Excel Programming 3 November 25th 03 06:29 PM


All times are GMT +1. The time now is 12:51 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"