A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
It begins with Dim and then it has a another code "Sub Reset..." is that to go into a module?
Integrate it into the code module of your Userform please, the idea behind:
The variable ResetButtonClicked is declared "at the top of the module" which means each sub into your form can read/write the variable at any time.
You said you click the reset button and got an error in TxtDate_Exit, so if the button is clicked we write TRUE into the variable.
What ever you have in your code, the change event of the textbox TxtDate fires, the VBA event manager interrupt the code of the command button and executes TxtDate_Exit.
In TxtDate_Exit we check the state of ResetButtonClicked and do nothing if it is true.
The sub ends and the event manager lets your button's code continue to run.
We write FALSE into the variable and the code in TxtDate_Exit works as before.
That's it.
Andreas.