Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Returns or sets a String indicating the caption at the top of the Microsoft Publisher application window. Read/write.
Syntax
expression.Caption
expression A variable that represents a Window object.
Return value
String
Example
The following example demonstrates how a subroutine could temporarily change the Publisher window caption and then restore it afterward.
Sub WindowCaption()
Dim strCaption As String
strCaption = ActiveWindow.Caption
ActiveWindow.Caption = "Custom process--please wait..."
' Run custom code here.
ActiveWindow.Caption = strCaption
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.