Partager via


Documents.Item Method (Word)

Returns an individual Document object in a collection.

Syntax

expression .Item(Index)

expression Required. A variable that represents a Documents collection.

Parameters

Name

Required/Optional

Data Type

Description

Index

Required

Long

The individual object to be returned. Can be a Long indicating the ordinal position of the individual object.

Return Value

Document

Example

This example displays the name of the first document in the Documents collection.

Sub DocumentItem() 
 If Documents.Count >= 1 Then 
 MsgBox Documents.Item(1).Name 
 End If 
End Sub

See Also

Concepts

Documents Collection Object

Documents Object Members