GridNameCollection.Add

Add(string, string)

Defines a new global name.

public int Add(string text, string refersTo)
ParameterTypeDescription
textStringName text.It can have sheetname .
refersToStringThe formula that the name is defined to refer to.It must have a sheetname .eg.‘sheet hello!‘A1:B2.

Return Value

Name object index.

See Also


Add(int, string, string)

Defines a new name in the specified sheet.

public int Add(int sheetIndex, string text, string refersTo)
ParameterTypeDescription
sheetIndexInt32The sheet index that the name is applyed in.
textStringName text.It can not have sheetname .
refersToStringThe formula that the name is defined to refer to.It must have sheetname .eg.‘sheet hello!‘A1:B2.

Return Value

Name object index.

See Also