I have a workbook with 3 tabs. The first tab is called Log-In, the 2nd tab is called "Unverified", and the third tab is called "Verified". I need to be able to force the user to use an "Exit" button I have created instead of being to close the worksheet with the Close "X" on the "Unverified" and "Verified" tabs. The Exit button runs a macro that formats and saves the worksheet.
However I need to allow the close function to occur on the tab named Log-In. I have created the following macro and placed the code in This Workbook. Unfortunately I am a novice at VBA and despite my efforts it does not work.
Can anyone help?
Bookmarks