Hello!
NPOI 1.2.5
Working with a named cell is fine:
var x = WB.GetName("TestCell");
var z = new CellReference(x.RefersToFormula);
But with a named region - exception - Invalid Formula cell reference: 'xxx!C':
var x = WB.GetName("TestColuml");
var z = new AreaReference(x.RefersToFormula);
x.RefersToFormula - return "xxx!C:C"
In Excel TestColuml=xxx!C3
Exception in cell reference: 'xxx!C'...
If I use var z = new AreaReference("xxx!C3"); - everything is fine.
Perhaps it is a mistake in then RefersToFormula?
NPOI 1.2.5
Working with a named cell is fine:
var x = WB.GetName("TestCell");
var z = new CellReference(x.RefersToFormula);
But with a named region - exception - Invalid Formula cell reference: 'xxx!C':
var x = WB.GetName("TestColuml");
var z = new AreaReference(x.RefersToFormula);
x.RefersToFormula - return "xxx!C:C"
In Excel TestColuml=xxx!C3
Exception in cell reference: 'xxx!C'...
If I use var z = new AreaReference("xxx!C3"); - everything is fine.
Perhaps it is a mistake in then RefersToFormula?