Hi,
I have a workbook with a code when pressing the X button it prompts you it you are sure that you want to exit the program with yes and no option.
Now i also have a user log in useform when opening the workbook and it has a cancel button so if you don't have a username or password you can then press cancel and the workbook should close however due to the msgbox prompt it then ask you if you are sure you want to exit and if the user press no the workbook stay opens and the user can then work on the workbook without entering a username and password.
My question is can you disable the msgbox asking you if you are sure that you want to exit with the event when pressing the cancel button on the username and password prompt?
Bookmarks