Returns the error at the given index.

Syntax:

Item( Index as Variant ) As Error
Return: Error
Parameters: Index The message text of the error or the index number of the collection element. The index can be a numerical expression (a number from 1 to the value of the "Count" property) or a string.

Example:
Dim ErrorColl As Errors
Dim Err As Error

Set ErrorColl = Application.Errors
Set Err = ErrorColl.Item(1)

See also:

Class Errors


Last Updated: 04/26/05