全部显示

Caption 属性

       

应用于 Application 对象的 Caption 属性。

应用于 DocumentWindow 对象的 Caption 属性。

示例

本示例显示每个打开的文档窗口的标题。

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