ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   System variable for "changes made" (https://www.excelbanter.com/excel-programming/345288-system-variable-changes-made.html)

Lon Sarnoff

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

Tom Ogilvy

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




Nigel

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




Lon Sarnoff

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






All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com