Thank you so much, Graham; your macro works perfectly. It'll save me much time. And thanks for your notations as well; they'll help me understand how the macro works.