Can't quit at this time
You can't quit Windows while Visual Basic is in run mode or break mode. You also can't quit Windows while a dialog box or message box is displayed.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.