[]
Generates the JSON string from the defined names.
The returned string serializes the current collection of defined names and can be used with FromJson(string) to restore the collection later.
string ToJson()
Function ToJson() As String
| Type | Description |
|---|---|
| string | The JSON string. |
INames names = workbook.Names;
names.Add("SalesRange", "=Sheet1!$A$1:$A$5");
string json = names.ToJson();