dchaney
Well-known Member
- Joined
- Jun 4, 2008
- Messages
- 732
- Office Version
-
- 2016
- Platform
-
- Windows
Hello all,
I have a userform currently that opens when the file opens, it is a "floating" form so it is always up, I hide all borders and disabled the X close button on the excel file. Everything is working great, except if for any reason there is an error that causes the userform to close there is no way (shot of right clicking and exiting program) for the user to close the file.
for instance, if I step through any portion of my code and I hit stop, the userform closes... does this close fire any additional subs?
Is there anyway at all to have a sub fire if the form closes for any reason at all? The Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) does not work, already tried that...
I have a userform currently that opens when the file opens, it is a "floating" form so it is always up, I hide all borders and disabled the X close button on the excel file. Everything is working great, except if for any reason there is an error that causes the userform to close there is no way (shot of right clicking and exiting program) for the user to close the file.
for instance, if I step through any portion of my code and I hit stop, the userform closes... does this close fire any additional subs?
Is there anyway at all to have a sub fire if the form closes for any reason at all? The Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) does not work, already tried that...