Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Copying ranges with formulas using absolute references

$
0
0
I need an easy way to reproduce the problem. The following works:
var wb = new XLWorkbook();
var ws = wb.AddWorksheet("Sheet");

ws.Cell("A1").SetValue(1)
    .CellBelow().SetFormulaA1("A1 + $A$1")
    .CopyTo("A3");
A1 = 1
A2 = "A1 + $A$1"
A3 = "A2 + $A$1"

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>