Adds a new Procedure to the Procedures collection.
Syntax
object.AddProcedure bstrProcName, bstrParamList, bstrLinesOfCode, pIndex
Properties
The AddProcedure method syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
bstrProcName |
String. The name of the Procedure to be added. |
bstrParamList |
String. The parameter list of the added Procedure. |
bstrLinesOfCode |
String. The lines of code to be added to the Procedure. |
pIndex |
Long. The index within the Procedures collection that the new Procedure occupies. |