I need to have the value of a NamedRange be a string, and use the NamedRange key in an if stmt like this:
engine.AddNamedRange("Y","B12");
engine.AddNamedRange("X","if(D0=Y,A0+B0,(A0))");
But this D0=Y evals to false.
Following works:
engine.AddNamedRange("X","if(D0=\"B12\",A0+B0,(A0))");
So this looks like a bug.
AD
Administrator
Syncfusion Team
July 14, 2005 11:38 PM UTC
>>engine.AddNamedRange("Y","B12");
This makes the namedrange Y refer to the cell B12. If you want the namedrange Y to refer to the string B12, then try:
engine.AddNamedRange("Y","\"B12\"");
BT
Byron Tate
July 15, 2005 01:41 AM UTC
thanks! quick help as usual.