Erik,

That's cool. I tested your code and it worked for me. Thanks for posting a solution.

My attempt may not be the best solution, but I think it would also work, if I had figured out how to switch between the documents in KiX code. [Roll Eyes]