If you mean Worksheet_Deactivate event, the answer is no. The UserForm is a separate platform and loading or unloading it does not normally affect the worksheet events, except that the code in the initialize event of the UF might cause changes or remove focus from a control, in which case the Exit event could occur.
No, I do not mean worksheet deactivate. If I have an _Exit event on a userform textbox and I read a value into that textbox from the spreadsheet in userform_initialization, will the Exit event fire/trigger?
Also, there's one other thing you may want to keep in mind. If a textbox has focus and you unload the userform, the Exit event for that textbox gets triggered. So, depending on what you have, you may want or need to add code accordingly.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.