Forum Discussion
tim_p70f9
Mar 24, 2020Copper Contributor
excel userform close error
Hi all, I have a user form that is called from the ThisWorkbook Module to run on startup the form works perfectaly until i try to close the form after the task is complete ive tried Both Unload ...
Subodh_Tiwari_sktneer
Mar 25, 2020Silver Contributor
Which event you are utilizing on ThisWorkbook Module? Is it Workbook_Open event?
If yes, try to utilize Workbook_Activate event instead.
Also, if you want to close the UserForm, use Unload instead of Hide as Hide will not close the UserForm but hide it i.e. make it invisible and the UserForm will still be available in the memory.
- tim_p70f9Mar 25, 2020Copper Contributor
Hi thanks for the repy i traced the error in the end it was the wrong types of quote around part of the loading module
- Subodh_Tiwari_sktneerMar 25, 2020Silver Contributor
No problem! Glad your issue has been resolved.