GetFullName
Returns the full name of the currently opened file.
Syntax
expression.GetFullName();
expression
- A variable that represents a Api class.
Parameters
This method doesn't have any parameters.
Returns
string
Example
This example shows how to get the full name of the currently opened file.
- Code
- Result
// How to get a full name of the file.
// Insert a full name of the file into a cell.
let worksheet = Api.GetActiveSheet();
let name = Api.GetFullName();
worksheet.GetRange("B1").SetValue("File name: " + name);