Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Changing The Changed State

Hi;

I was wondering if anyone has a code snippet to show me
how to set the changed state for a workbook to be
changed. I have several routines that create changes to
the workbook but when the user X's out it does not ask
them if they want to save the changes.

Thanks,

Greg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Changing The Changed State

Hi Greg
normally Excel takes care of this. Do you have any code in the
workbook_BeforeSave event?

--
Regards
Frank Kabel
Frankfurt, Germany


Gjones wrote:
Hi;

I was wondering if anyone has a code snippet to show me
how to set the changed state for a workbook to be
changed. I have several routines that create changes to
the workbook but when the user X's out it does not ask
them if they want to save the changes.

Thanks,

Greg


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing The Changed State

In the BeforeClose event for the workbook object you can place th
following Me.saved = true


Elsewhere you can put workbooks("NameHere").saved = tru

--
Message posted from http://www.ExcelForum.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
replace state names with state code abbreviations se7098 Excel Worksheet Functions 3 July 25th 09 06:41 PM
How can I show state-by-state data (as silos) on a map of NA Rob Charts and Charting in Excel 0 November 5th 07 03:41 PM
can worksheet names be changed by changing certain cells? anand Excel Worksheet Functions 4 October 5th 07 02:27 PM
Converting State Names to State Abbreviations aznate Excel Discussion (Misc queries) 1 October 20th 06 06:52 AM
cell data changing when a value within a group is changed sandmania Excel Discussion (Misc queries) 1 December 20th 05 08:31 PM


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