SHEET

function SHEET(arg1: string = null): number | string | boolean

Description

Returns the sheet number of the referenced sheet.

Parameters

arg1stringdefault: null

Is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned.

Returns

number | string | boolean

Try It


const oWorksheet = Api.GetActiveSheet(); 
var oFunction = Api.GetWorksheetFunction();
var result = oFunction.SHEET("Sheet1");
oWorksheet.GetRange("C3").SetValue(result);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).