![]() |
UserForms to deactivate workbook
ThisWorkbook.Close
or: ThisWorkbook.Close False 'if you don't want the Save Changes prompt -- Vasant "Patrick Marion" wrote in message ... I have created a UserForm which gives the user the option to either get into the worksheet/workbook or exit the worksheet/workbook. Would someone know the VBA code to attach to the Cancel button so that it actually closes the workbook? Thanks very much. |
All times are GMT +1. The time now is 08:27 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com