Apologies i have now resolved this myself. I had references to ActiveWorkbook which i changed to ThisWorkbook. Ridiculous that i didn't think of that before! Many thanks Tom