Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do you reset 'change was made in workbook' switch?

I've written VBA code in the Workbook_Open() event that
initializes some controls in a spreadsheet to default
values. Once this is done, I'd like to reset the switch
that gets set when a change is made to a worksheet so the
user won't be asked if they want to save the document
unless the user actually makes a change in the worksheet
after the default values are set. How do you reset the
switch that indicates that a change was made in the
workbook?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default How do you reset 'change was made in workbook' switch?

ThisWorkbook.Saved = true

tim


"Vince" wrote in message
...
I've written VBA code in the Workbook_Open() event that
initializes some controls in a spreadsheet to default
values. Once this is done, I'd like to reset the switch
that gets set when a change is made to a worksheet so the
user won't be asked if they want to save the document
unless the user actually makes a change in the worksheet
after the default values are set. How do you reset the
switch that indicates that a change was made in the
workbook?



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
Only save and print if change made Kiba Excel Discussion (Misc queries) 3 January 7th 09 06:35 PM
Is there a shortcut key to switch from one workbook to another? Firj Excel Discussion (Misc queries) 1 May 1st 08 07:28 PM
Changes made and saved are not there after workbook is closed DIANE K Excel Discussion (Misc queries) 4 July 10th 06 10:22 PM
i made change in a current workbook and accidentally save it, can. angel Excel Discussion (Misc queries) 1 January 4th 05 01:11 AM
how do i switch between multiple sheets in the same workbook (key. Catalin Excel Discussion (Misc queries) 3 December 16th 04 06:33 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"