Hi,
Sorry for only just replying, it has been very busy. I just wanted to thank you for all your help. I input the code that you suggested and it worked perfectly. All the students now have a tune playing on their devices and are thrilled. Thank you so much for your help once again.