• My guess is that it is choking on the elapsed time calculation.

    Try commenting out that entire section ('Calculate execution elapsed time..., except for the Dim statement that creates the elapsed time variable) and see if it then works.

    If it does, you can probably do without the elapsed time data.

    I don't encounter the problem when I run it on my workstation, so I don't really know how to debug it.

    If you want to use it, you'll have to play with the code.