Many thanks for the response
But...
I think that the script was actually in an endless loop because if you allowed it to continue (by clicking No) it would freeze and never complete. The html that was being editted was pretty messy and probably not well formed. I would send it to you to try on your system but my client has now changed it. If it happens again I will let you know and send you the html.
P.S what should the mesage have been for {ItIsSlowThatSwitchToCode}
Many Thanks