Skip to main content

PROPER

Converts a text string to proper case: the first letter in each word to uppercase, and all other letters to lowercase.

Syntax

expression.PROPER(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | stringThe text enclosed in quotation marks, a formula that returns text, or a reference to a cell containing text to partially capitalize.

Returns

string

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.PROPER("dAVID CONNOR"));