ChangeCase Method

Applies To

TextRange object.

Description

Changes the case of the specified text.

Syntax

expression.ChangeCase(Type)

expression Required. An expression that returns a TextRange object.

Type Required Long. Specifies the way the case will be changed. Can be one of the following PpChangeCase constants: ppCaseLower, ppCaseSentence, ppCaseTitle, ppCaseToggle.

Example

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

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