返回或设置一个 字符串 ,指示在 Microsoft Publisher 应用程序窗口顶部的标题。 读/写。
语法
表达式。标题
表达 一个代表 Window 对象的变量。
返回值
字符串
示例
以下示例说明子例程是如何临时更改 Publisher 窗口的标题然后再将其恢复的。
Sub WindowCaption()
Dim strCaption As String
strCaption = ActiveWindow.Caption
ActiveWindow.Caption = "Custom process--please wait..."
' Run custom code here.
ActiveWindow.Caption = strCaption
End Sub
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。