Caption Property

Microsoft PowerPoint Visual Basic

ShowCaption property as it applies to the Application object.

Returns the text that appears in the title bar of the application window. Read/write String.

expression.Caption

expression    Required. An expression that returns one of the above objects.

ShowCaption property as it applies to the DocumentWindow object.

Returns the text that appears in the title bar of the document window. Read-only String.

expression.Caption

expression    Required. An expression that returns one of the above objects.

Example

This example displays the caption for each open document window.

With Application.Windows
    For w = 1 To .Count
        MsgBox "Window " & w & " contains " & .Item(1).Caption
    Next
End With