Yes. it is repetitive. And I think, it is in Microsofts VBS engine. It does not allow declaring types explicitly, change them on the fly; and something happens when calling time format functions. I removed that time thing, and converted everything manually to CDbl, now it works.

One would say "use python". Maybe. But IronPython is dead, and I can not comprehend languages where a pair of white-spaces define a distance between life and death.

Anyway, there were complications in tracking the problem, because the error is not reflected in the log-box; as I said.