Thank you for your reply

This one is slightly different, and I'm not yet skilled enough to be able to edit the previous code to make it do what I want.