Skip to main content

UNICHAR

Returns the Unicode character referenced by the given numeric value.

Syntax

expression.UNICHAR(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe Unicode number representing a character.

Returns

string

Example

This example shows how to return the Unicode character referenced by the given numeric value.

// How to get a Unicode character.

// Use a function to return the Unicode character knowing its reference number.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.UNICHAR(378));