Originally Posted by
MarvinP
Your request is a little different. You are asking how to archive previous versions on save but don't have a specific rule. You might want to save but sometimes not. These save or not, without a set rule is tough to decide how to resolve the problem.
After re-reading your question perhaps this will work. You can just pretend that the workbook has been saved with a command like:
It doesn't really save the workbook but when you do close it - it won't ask to be saved.
Is this what you were looking for?
No, I'm not bothered about the archive thing, that was just an idea I had to perhaps get round my problem but creating many copies of the file isn't practical.
This is my exit code:
It turns off all the sheets except 'Welcome' and does a force save (no prompt) then close ...exactly what I need to keep the sheets invisible even when the file is closed. However ....and this is the problem ...what's to stop a user opening the file making a complete hash of the numbers and then exiting out expecting to be able to NOT save changes and bam, my code automatically saves the changes. I need the option to be able to undo their work (if they want) and then do my force save ...but I must have my force save at the end.
Making any more sense?
Bookmarks