Share via


Caption Property [Publisher 2003 VBA Language Reference]

Returns or sets a String indicating the caption at the top of the Microsoft Publisher application window. Read/write.

expression.Caption

expression Required. An expression that returns one of the objects in the Applies To list.

Example

The following example demonstrates how a subroutine could temporarily change the Publisher window caption and then restore it afterwards.

Sub WindowCaption()
    Dim strCaption As String

    strCaption = ActiveWindow.Caption

    ActiveWindow.Caption = "Custom process--please wait..."

    ' Run custom code here.

    ActiveWindow.Caption = strCaption
End Sub

Applies to | Window Object