Apologies for not putting the entire code in, I was not able to as it's larger than 9500 characters and therefore wont post =( In future, do I need to break the code down into more than one post to get it onto the forum?
Thanks again for the pointer.