Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.