Hey,
worksheet = workbooks.item(1).worksheets().itemFromNum(1);
cells = worksheet.cells();
excelCOM = cells.comObject();
excelCOM = excelCOM.SpecialCells(11);
lastRow = excelCOM.Row();
with this code i want get the last row of my excel sheet.
This works fine but if i change the rows of the excel sheet, the varibale (lastRow)
dont geht the new amount of the rows.
I reset the lastRow at the end of my code with lastRow = 0;
Example:
I had a sheet with 700 rows and change it to 39 but the lastRow stand still on 700 i dont know why but if i import a new Excel sheet they change to the new amout of rows.
And if i create the file new with the 39 rows they get the amout too of the 39 rows.
Thanks for every help
Felix
*This post is locked for comments
I have the same question (0)