Item method (Folders collection)

Returns a Folder object from the Folders collection. The object to be returned is specified by its position in the collection or by the name.
Syntax
Set
Folder
=
Folders
.
Item
(
Index
)
where
Folder
is the name of a Folder object or an expression that evaluates to a Folder object.
Folders
is the name of a Folders collection or an expression that evaluates to a Folders collection.
Index
is an expression that specifies the object to be returned.
  • If it is a numeric expression,
    Index
    specifies the object's position in the collection and is a number from 1 to the value of the collection's
    Count
    property.
  • If it is a string expression,
    Index
    is the name of an object in the collection.
Remarks
  • An error occurs if the value of
    Index
    does not match an existing member of the collection.
  • Item
    is the default method of the Folders collection. This means that the following lines of code are equivalent:
    Folders(1)
    Folders.Item(1)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal