Holly, have you looked in the downloads (on tool bar above, Downloads> Allen Bradley)
various ways of doing it. Anything done by Lance1 will be good to go as he was/is a legend on this forum, a 10,000 post man (retired when he reached that milestone) and was the tutor for coding on this site. Some others that have been uploaded need to be double checked as you may find errors when operating.