跳到主要内容

UPPER

Converts a text string to all uppercase letters.

Syntax

expression.UPPER(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | stringThe text which will be converted to uppercase, a reference or a text string.

Returns

string

Example

This example shows how to convert a text string to all uppercase letters.

// How to make a string characters uppercase.

// Use a function to convert all letters to uppercase.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.UPPER("Online Office"));