Application.References Property

Access Developer Reference

You can use the References property to access the References collection and its related properties, methods, and events. Read-only References collection.

Syntax

expression.References

expression A variable that represents an Application object.

Remarks

The References collection corresponds to the list of references in the References dialog box, available by clicking References on the Tools menu. Each Reference object represents one selected reference in the list. References that appear in the References dialog box but haven't been selected aren't in the References collection.

Example

The following example displays a message indicating the number of boxes checked in the References dialog box.

Visual Basic for Applications
  MsgBox "There are " & Application.References.Count & " references."

See Also