Hi Matt,
Try the following code, with the changes in Red. Unfortunately, if the user presses the 'x' to close the file, and selects 'Cancel', your timer stops.
The simplest and most reliable way to fix the problem that I know of is to:
a. Disable the 'x' to close Excel.
b. Disable the 'x' to close the file.
c. Disable closing the file from the Excel Menu
d. Add a CommandButton to Save and Exit.
e. Add a CommandButton to Exit without Saving.
Options d. and e. would leave Excel Open if there were other open workbooks.
ThisWorkbook code module:
Lewis
Bookmarks