Application.Documents 属性 (Publisher)

返回一个 Documents 集合,该集合代表所有打开的出版物。 只读。

语法

表达式文件

expression:表示 Application 对象的变量。

返回值

文档

示例

以下示例列出了所有打开的发布。

Dim objDocument As Document 
Dim strMsg As String 
For Each objDocument In Documents 
 strMsg = strMsg & objDocument.Name & vbCrLf 
Next objDocument 
MsgBox Prompt:=strMsg, Title:="Current Documents Open", Buttons:=vbOKOnly

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。