ChangeCase Method

Microsoft PowerPoint Visual Basic

ChangeCase Method

       

Changes the case of the specified text.

expression.ChangeCase(Type)

expression   Required. An expression that returns a TextRange object.

Type  Required PpChangeCase. Specifies the way the case will be changed.

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