function setNameCell(name,value)
{
var cname=spread.getCustomName(name);
if (cname instanceof GcSpread.Sheets.NameInfo) {
var expr=cname.getExpression();
if (expr && expr.source)
{
var i=expr.row;
var j=expr.column;
var shtname=expr.source._sheet._name;
if (shtname)
{
spread.getSheetFromName(shtname).setValue(i,j,value);
}
}
} |
|