Share via


ChangeCase Method

Changes the case of the specified text.

expression**.ChangeCase(Type)**

*expression   * Required. An expression that returns a TextRange object.

PpChangeCase

PpChangeCase can be one of these PpChangeCase constants.
ppCaseLower
ppCaseSentence
ppCaseTitle
ppCaseToggle
ppCaseUpper

Example

This example sets title case capitalization for the title on slide one in the the active presentation.

Application.ActivePresentation.Slides(1).Shapes.Title.TextFrame _
    .TextRange.ChangeCase ppCaseTitle

Applies to | TextRange Object