sanrv1f
MrExcel MVP
- Joined
- Jan 1, 2009
- Messages
- 3,474
- Office Version
- 2016
- Platform
- Windows
Hi
Im using an user form to design a calculator
once the user closes the form, I want the work book also to get closed without asking the user to save changes
here is the code I used
Private Sub UserForm_Terminate()
ThisWorkbook.Close savechanges:=False
End Sub
this code works fine and closes the excel without prompting for saving, but excel hangs after that, pls help me with this
Im using an user form to design a calculator
once the user closes the form, I want the work book also to get closed without asking the user to save changes
here is the code I used
Private Sub UserForm_Terminate()
ThisWorkbook.Close savechanges:=False
End Sub
this code works fine and closes the excel without prompting for saving, but excel hangs after that, pls help me with this