Thanks for the help.

I am now stuck again because I had to modifiy the document layout.
Is there a way to make this code handle the number of columns that should be considered?
I would like to limit the data to columns "A to S" in other words the 19 first columns.
I tried to tweak "MaxCols" but it doesn't work.

Could anyone give me a hint on this please?

Thanks in advance!