Thanks for your answer, it works correctly.
I have another question about pivot tables, I need a xlsx file with two data sheets and two sheets with Pivot Tables.
My problem raise when i add a second pivotcache in workbook linked to a second pivot, for istance if I have a single pivotcache and link it to two different pivot table, they works on same data but no error is raised, if I add a second cache linked to second pivot, this condition raise an error in file opening.
I attach an example of an excel file.
output_9fbd241c.zip