Hi. Love this project!!!
We have a file where the usedrange is shown as E2:G11 when it should be A2:G11. Any ideas why?
Many thanks,
Chris
Comments: Very strange... when I open that template using this code: ``` var fs = new FileStream(tempFile, FileMode.Open) var workbook = new XLWorkbook(fs); foreach (var xlWorksheet in workbook.Worksheets) { var rangeUsed = xlWorksheet.RangeUsed(true); if (rangeUsed != null) { foreach (var xlCell in rangeUsed.Cells()) ``` the debugger shows {'Sheet1'!E2:G11} for "rangeUsed" var and starts looping at E2 I will investigate further.... sorry about that
We have a file where the usedrange is shown as E2:G11 when it should be A2:G11. Any ideas why?
Many thanks,
Chris
Comments: Very strange... when I open that template using this code: ``` var fs = new FileStream(tempFile, FileMode.Open) var workbook = new XLWorkbook(fs); foreach (var xlWorksheet in workbook.Worksheets) { var rangeUsed = xlWorksheet.RangeUsed(true); if (rangeUsed != null) { foreach (var xlCell in rangeUsed.Cells()) ``` the debugger shows {'Sheet1'!E2:G11} for "rangeUsed" var and starts looping at E2 I will investigate further.... sorry about that