Adds a new event handler to the Procedures collection.
Syntax
object.AddEventHandler bstrEventName, bstrLinesOfCode, pIndex
Properties
The AddEventHandler method syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
bstrEventName |
String. The name of the event. |
bstrLinesOfCode |
String. The code to be written to the event in the form of strings. |
pIndex |
Long. Numerical index of the procedures position in the existing collection. Note: This index is transient, it will change as procedures are added or deleted. |