Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop Excel asking if I want to save!

Status
Not open for further replies.

sevi

IS-IT--Management
Joined
Jan 29, 2002
Messages
64
Location
GB
I want to stop Excel 97 asking if I want to save a document every time I’ve mad a change and then try to close it.

Can anyone help?
 
there are a couple of way I know of that you could do it - they both use VBA.

Simplest solution is to open up VBA editor, click on "ThisWorkbook", select the "BeforeClose" event and insert this code:

Code:
       ThisWorkbook.Save
 
Thanks for the reply.

Could you give me a bit more info on how to do this? I’m a bit of a newby.

Also, I need to remove the tool bars etc. Could you let me know how to do this?

Thanks
 
If you are looking into this kind of functionality, I'd respectfully suggest you need to be a bit more than a "newby". You really need to understand the consequences of removing toolbars, how to replace them etc etc. Maybe an explanation of what you are trying to achieve would be helpful so we can point out some potential pitfalls etc Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top