跳到主要内容

ISREF

Checks whether a value is a reference, and returns -true or -false.

Syntax

expression.ISREF(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | string | number | boolean | ApiNameThe value to test.\ The value can be an empty cell, error, logical value, text, number, range, or range name.

Returns

boolean

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ISREF("A3"));
worksheet.GetRange("A2").SetValue(func.ISREF(worksheet.GetRange("A3")));