ItemAdded Event

Applies To   References collection.

Description

The ItemAdded event occurs when a reference is added to the project from Visual Basic.

Notes

  • The ItemAdded event applies to the References collection. It isn't associated with a control, form, or report, as are most other events. Therefore, in order to create a procedure definition for the ItemAdded event procedure, you must use a special syntax.
  • The ItemAdded event can run only an event procedure when it occurs, it cannot run a macro.
Remarks

This event occurs only when you add a reference from code. It doesn't occur when you add a reference from the References dialog box, available by clicking References on the Tools menu when the Module window is the active window.

See Also   ItemRemoved event.