Greetings!

I made a userform for our daily work routine, I have added a real time ticking in the userform, upon opening the form, the clock ticks every second, but the problem is, when I close the form, an error is prompting and says "Method 'OnTime' of object '_Application' failed". Can anyone guess how to correct the code and add code so that when I close the form, the initialization of the clock stops too.

here is my workbook

Querier.xlsm