hexagon logo

Excel form report and subrutine

Hi everyone.

I created a program that calls a subroutine 10 times, where measurements are made and at the end creates an excel file with excel form report. I noticed that each time the excel file contains the measurements of the previous file. For example, on the third call to the Excel file I find the measurements of the first and second piece. Is there a way to prevent this from happening?