Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default skipping pop up box for saving changes when closing a file

In my macro I open and close several files. One of them I dont want to save
the changes I have done to the file. I thought the following was a way to
elimate the "Do you want to save your changes" pop up box that shows up when
I close the file.....but for some reason excel does not agree with me. Thanks
for the help

Application.DisplayAlerts = False
Workbooks(Top25Report).Close Savechanges:=False
Application.DisplayAlerts = True
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default skipping pop up box for saving changes when closing a file

thisworkbook.saved = true

Hope this helps...

"Tony" wrote:

In my macro I open and close several files. One of them I dont want to save
the changes I have done to the file. I thought the following was a way to
elimate the "Do you want to save your changes" pop up box that shows up when
I close the file.....but for some reason excel does not agree with me. Thanks
for the help

Application.DisplayAlerts = False
Workbooks(Top25Report).Close Savechanges:=False
Application.DisplayAlerts = True

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
Saving and closing erf Setting up and Configuration of Excel 4 June 18th 08 06:52 PM
Saving and Closing erf Excel Worksheet Functions 3 June 18th 08 05:03 PM
auto saving & closing file prtcorvette Excel Worksheet Functions 1 May 21st 08 10:06 PM
How to code on Macro on saving and closing a file? Eric Excel Worksheet Functions 1 June 10th 07 01:32 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 02:13 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"