Hi Agent Smith!

Thank you for the reply but I got an error running your code from word "Compile error" in the first line "oXLApp2 As Excel.Application". It seems the code is different for word.

Thank you anyway.

Best wishes