Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 134
Default Saving Workbooks w/ Charts

Apparently an Excel Workbook w/ at least one Chart
in it will normally ask if the user wants to Save it,
even if no changes of any kind have been done...
This is "Scenario A".

That can be prevented by adding the below in the
Excel Object "ThisWorkbook"....

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Saved = True
End Sub

However, this stops a request to save a change WHEN
something has been changed = This is "Scenario B".

How do I prevent "Scenario B", but retain "Scenario A"???

TIA - Bob

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,582
Default Saving Workbooks w/ Charts

Having a chart is not enough to make the workbook ask to save changes on
closing. Make sure there is no volatile data, such as RAND() or NOW().

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Bob Barnes" wrote in message
...
Apparently an Excel Workbook w/ at least one Chart
in it will normally ask if the user wants to Save it,
even if no changes of any kind have been done...
This is "Scenario A".

That can be prevented by adding the below in the
Excel Object "ThisWorkbook"....

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Saved = True
End Sub

However, this stops a request to save a change WHEN
something has been changed = This is "Scenario B".

How do I prevent "Scenario B", but retain "Scenario A"???

TIA - Bob



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
Shared Workbooks Saving JenPrl Excel Discussion (Misc queries) 0 March 30th 07 01:52 AM
SAVING DATA TO CLOSED WORKBOOKS DarnTootn Excel Worksheet Functions 0 May 15th 06 04:21 PM
Saving changes in shared workbooks Creator Excel Discussion (Misc queries) 2 February 13th 06 09:07 PM
Messages after saving in sharerd workbooks Matthew McManus Excel Discussion (Misc queries) 1 June 9th 05 08:09 AM
Saving Charts to .htm drvortex Excel Worksheet Functions 0 November 2nd 04 01:08 AM


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