var worksheet = workbook.Worksheets["工作表1"]; var maxN = worksheet.Range["A1"].End[excel.XlDirection.xlDown].Row; //从A1向下查找最低下的一个数据行的坐标 object[,] arr = worksheet.Range["A2:H" + maxN].Value2;