Once again a big thanks to all for their help.

Jpols I took the UDF you made and adapted it slightly and it works fine. My script may not be any shorter but it looks cleaner.

However, I still don't see the problem with "GOTO" statements. To me they seem clear as to where they point to and what you want them to do.