Good one Eric ... I was just working on a similar script ... all the while thinking "screw-it", just slap a GOTO in there and be done with it. Think this is one of those rare cases where a quick GOTO is justified. And actually makes the code easier to follow (not saying your code is hard to follow) ;0) .

btw - we've asked Ruud for an "end for" statement in the past. Even with that, this nested FOR stuff would still need some fudging (imho)