Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Splitting of shared formulas fails #28

Open
sonix1977nl opened this issue Oct 11, 2017 · 0 comments
Open

Splitting of shared formulas fails #28

sonix1977nl opened this issue Oct 11, 2017 · 0 comments

Comments

@sonix1977nl
Copy link

If you have a shared formula in a column and you try to update a range where the end row is larger than that of the shared formula, you get an address out of range exception that is caused by ExcelRangeBase.SplitFormula.

This problem can be simply replayed with the following code:

var package = new ExcelPackage();
var sheet = package.Workbook.Worksheets.Add("Test");
sheet.Cells["A2:A4"].Formula = "NOW()";
// The line below will cause an exception.
sheet.Cells["A2:A5"].Value = null;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant