I have edited your code with the names I use.
First it did not run the way i think it should.
After I inactivated (') the lines that tested for "activedocument", all worked as I aspected it would do.
So I am pleased with the result, but have just a question about these lines I had to inactivate.
What is the purpose of these lines?
|