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)
ParameterDescription
sheetIndexThe sheet index that the name is applyed in.
textName text.It can not have sheetname .
refersToThe formula that the name is defined to refer to.It must have sheetname .eg.‘sheet hello!‘A1:B2.
sheetIndexName’s SheetIndex ,the index is from 1.

Return Value

Name object index.

See Also