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

Created Unassigned: Formula with NamedRange not working [9463]

$
0
0
I created named range for cel A1 with name "TEST.CELL" and in cel B1 created formula "=TEST.CELL*10"
it works in excel but when i try to read value from B1 i get

Exception {"Syntax error."}
at ClosedXML.Excel.CalcEngine.CalcEngine.Throw(String msg)
at ClosedXML.Excel.CalcEngine.CalcEngine.Throw()
at ClosedXML.Excel.CalcEngine.CalcEngine.Parse(String expression)
at ClosedXML.Excel.CalcEngine.ExpressionCache.get_Item(String expression)
at ClosedXML.Excel.CalcEngine.CalcEngine.Evaluate(String expression)
at ClosedXML.Excel.XLWorksheet.Evaluate(String expression)
at ClosedXML.Excel.XLCell.get_Value()

If name is "TEST_CELL" it works, can this problem with "." be fixed.

__EXAMPLE__
var tWb = new XLWorkbook(tFile);
IXLWorksheet tWorksheet1;
tWb.Worksheets.TryGetWorksheet("Sheet1", out tWorksheet1);

tWorksheet1.Cell("A1").SetValue(1);
//var r1 = tWorksheet1.Cell("TEST.CELL").Value;
var r = tWorksheet1.Cell("B1").Value;

Thanks


Viewing all articles
Browse latest Browse all 1877

Trending Articles



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