Oh thanks, that's much neater! Is there an easy way to change the safe code? I want to do a different code for each group.
It's okay. I messed around with the one you edited rusnakcreative and made these two variations. Thanks again for your help. You made it a lot easier for me.