I tested the code and there is a difference when the trailing space is red vs when it isn't. If it is ONLY the word that is red, the code goes in to a loop. This doesn't happen if the trailing space is also red.
I haven't got time to work out the solution at the moment but will try to get back to it later today to come up with the workaround.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|