Fitness contains 1 sheet to monitor weight loss. The first 5 columns remain stationery indicating planned period by period target weights. The next 2 columns show the targets adjusted as desired to be realistic and compared to the originals. Actual weight is manually entered periodically in the 8th column with results automatically appearing in the following 4 columns conditionally formatted green, black, or red depending on if positive, unchanged, or negative. The current day target and actual figures conditionally turn orange.
The workbook is VBA'ized only to run automatically upon opening and calls a sub that causes a couple of cells to continuously blink alternating colors as well as to manually close the workbook without saving changes if desired without a close prompt appearing.
It all works perfectly...unless an unrelated Workbook2 is open at the same time in which case Fitness immediately reopens once closed. It can never be closed permanently, whether saved or not, unless Workbook2 has first been closed.
So I conceded to live with a close prompt and deleted the Auto_Close sub. However, my baffling problem is that now even with no Auto_Close, the computer restarted, and a close prompt appearing, Fitness continues to always immediately restart once closed, whether saved or not, if Workbook2 is open. Only after Workbook2 is closed can I close Fitness.
I had no problem before I first added Auto_Close so that seems to have caused the problem. Why does the problem continue even though Auto_Close is gone?
Workbook_Open is in ThisWorkbook of Fitness and calls the StartBlink sub which is in Module1. Module2 contains (which I later removed) the Auto_Close() sub which actuates ThisWorkbook.Saved = True.
Thanks for you help!
(I'm new here. If Fitness.xlsm is not attached, please let me know and I'll try again)
Bookmarks