I think I might have given you wrong information, sorry! The original code just used CreateObject and I closed the document everytime I ran it which is stupid so now I'm trying to figure out how to run the code without closing the document first. I thought I had the right idea in #8 but the objects created are quite different.