I managed to narrow down the problem.
Attached is a very simple file with which to reproduce the bug
1) open the file
2) manually change the size of the button by pressing the button with the square (the design mode)
3) from the immediate window launch
4) optional, verify that this has had an effect by typing
it will answer "True"
5) try to close the sheet
6) it will ask if we want to save the changes!!!
7) answer Cancel
8) type
again, it will answer "False" !!!
If instead of the command 3) you do a real save all it will work as expected (i.e. at point 6 the file will close without any questions)
So what else must be done in VBA to fully simulate the Save command?
Bookmarks