You are missing my point.

You are changing the workbook when you hide/unhide sheets, so it automatically isn't saved. If you leave it to the user to decide whether to save it or not, they can say no, so you work is ignore.