Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.Documents Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a Documents collection that represents all open publications. Read-only.

Syntax

expression. Documents

_expression_A variable that represents a Application object.

Return Value

Documents

Example

The following example lists all of the open publications.

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

See also

Concepts

Application Object

© 2018 Microsoft