I use
$iRows = $oExcel.ActiveSheet.UsedRange.Rows.Count
to count the rows in this excel.
then i import the excel to an array
$aWO_Nr = _ExcelReadSheetToArray($oExcel,1,1)
how come thet it counts 65000+ rows ?
Therefore the import to the array doesnt work. Map1.zip