GetName
Returns a sheet name.
Syntax
expression.GetName();
expression
- A variable that represents a ApiWorksheet class.
Parameters
This method doesn't have any parameters.
Returns
string
Example
This example shows how to get a sheet name.
- Code
- Result
let worksheet = Api.GetActiveSheet();
let name = worksheet.GetName();
worksheet.GetRange("A1").SetValue("Name: ");
worksheet.GetRange("B1").SetValue(name);