Thanks, Elian - that's exactly what I needed to know. And Nkuvu, it was suggested to me by one of my colleagues that I just make it another sub (not nested). I'm think that would work, but 1) I always want to learn something new and 2) I wanted to make this sub more cohesive and less coupled to the rest of the script, just because that's the way I best understand code.