diff --git a/RhSolutions.AddIn/Services/ExcelReader.cs b/RhSolutions.AddIn/Services/ExcelReader.cs index e124c24..dc99253 100644 --- a/RhSolutions.AddIn/Services/ExcelReader.cs +++ b/RhSolutions.AddIn/Services/ExcelReader.cs @@ -95,7 +95,7 @@ public class ExcelReader : IReader, IDisposable ProductLineCell = worksheet.Cells.Find(headers["ProductLine"]), NameCell = worksheet.Cells.Find(headers["Name"]), MeasureCell = worksheet.Cells.Find(headers["Measure"]); - var lastRowIndex = worksheet.Cells[worksheet.Rows.Count, AmountCell.Column] + var lastRowIndex = worksheet.Cells[worksheet.Rows.Count, SkuCell.Column] .End[XlDirection.xlUp].Row; Dictionary readResult = new();