Quote:
Originally Posted by sojiro
Yes this works perfectly and without asking every time to save
I expect that there will be no problems with loosing any data right?
It is a stupid question since i am sure you would not publish such a code but still i need to ask.
|
The code won't cause you to lose any data. The modified version simply stores the document's current 'saved' state at the start and restores it at the end. That way, if you'd done some editing before running the macro, you'll still get the usual save prompts, etc. (as you will if you make any edits after running the macro), but you won't get them if you simply open the document, run the macro, then close it without further edits.