Is there a way to know programmatically that we are in BreakMode and maybe even know on what line?
I found out that using apostrophes one can start OnTime with parameters and not having the error "Can't execute code in break mode".
This will execute MySub with the time it was started when all running code has finished, not editing a cell or having a MsgBox-popup. But it also executes MySub if the running code has stopped at a break-point. Hard to really debug, because normally the OnTime would wait until all running code has finished.
Knowing the BreakLine would also enable me to have code running in BreakMode and help me writing code with VBProject.VBComponents...
I found out that using apostrophes one can start OnTime with parameters and not having the error "Can't execute code in break mode".
Code:
Application.OnTime now, "'MySub " & now & "'"
Knowing the BreakLine would also enable me to have code running in BreakMode and help me writing code with VBProject.VBComponents...
