In reply to Anton Meshcheryakov.

Anton, thank you for sharing your elegant solution, it's concise and easy to understand. Would you elaborate on its pros/cons compared with the "traditional" macro looping approach?