Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default System variable for "changes made"

My application provides the user a Save button which creates a well-defined
file name. I have disabled the user's access to the FileSave menu item. I
would like to clear whatever system variable is used to flag "changes made"
to the document which in turn prompts the "Do you want to save?" inquiry to
the user upon closing.

Is there such a variable which I can access, and if so, what is the setting
which would suppress the inquiry?
--
Lon Sarnoff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default System variable for "changes made"

thisworkbooks.Saved = True

--
Regards,
Tom Ogilvy


"Lon Sarnoff" wrote in message
...
My application provides the user a Save button which creates a

well-defined
file name. I have disabled the user's access to the FileSave menu item.

I
would like to clear whatever system variable is used to flag "changes

made"
to the document which in turn prompts the "Do you want to save?" inquiry

to
the user upon closing.

Is there such a variable which I can access, and if so, what is the

setting
which would suppress the inquiry?
--
Lon Sarnoff



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default System variable for "changes made"

ActiveWorkbook.Saved = True

Will set the workbook 'system variable' to a saved status, closing the
workbook after invoking the above will close it without any messaging.

--
Cheers
Nigel



"Lon Sarnoff" wrote in message
...
My application provides the user a Save button which creates a

well-defined
file name. I have disabled the user's access to the FileSave menu item.

I
would like to clear whatever system variable is used to flag "changes

made"
to the document which in turn prompts the "Do you want to save?" inquiry

to
the user upon closing.

Is there such a variable which I can access, and if so, what is the

setting
which would suppress the inquiry?
--
Lon Sarnoff



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default System variable for "changes made"

Thank you. Simplicity is golden.
--
Lon Sarnoff


"Tom Ogilvy" wrote:

thisworkbooks.Saved = True

--
Regards,
Tom Ogilvy


"Lon Sarnoff" wrote in message
...
My application provides the user a Save button which creates a

well-defined
file name. I have disabled the user's access to the FileSave menu item.

I
would like to clear whatever system variable is used to flag "changes

made"
to the document which in turn prompts the "Do you want to save?" inquiry

to
the user upon closing.

Is there such a variable which I can access, and if so, what is the

setting
which would suppress the inquiry?
--
Lon Sarnoff




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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"Type mismatch" when I try to fill an Array variable with "+" [email protected] Excel Discussion (Misc queries) 1 April 17th 07 01:28 PM
Can locating "FIND" results be made easier on the eyes? [Office 20 Brymor Excel Discussion (Misc queries) 12 January 8th 07 11:31 AM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" Luc[_3_] Excel Programming 2 September 28th 05 08:37 PM
What are the System Tables named "Print Area" & "Print Titles"? Tom Ogilvy Excel Programming 1 August 18th 03 05:38 PM


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