Looping through a vector within the select function

Hi there, this is a really nice way of creating the new tables, I will use this in future!

Yes, sorry, I shouldn't add in a second question after the first. I wasn't sure whether to start a new thread or not, will do in future. Very grateful for all the support from this forum, absolutely brilliant!