Hi Guessed,
thanks for your reply!
The code works now as I did change or added a line of code to reference to the active document.
However as I am pretty new to this forum I have not yet figured out how to set the solved icon to my threat.
Maybe someone could let me know so I am not bothering anyone with a solved threat here
Many thanks
Silentwolf