Thank you for the input. I manged that yes. Now the error message is gone. When I open now the XLSX file remotly on my desktop the file is empty. I wanted the data to be stored automatically in the XLSX file so I could use the data in the XLSX for further calculations. Is that no possible ?