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
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | string | The text enclosed in quotation marks, a formula that returns text, or a reference to a cell containing text to partially capitalize. |
Returns
string
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.PROPER("dAVID CONNOR"));