Creates a procedure to receive the focus in the code window by concatenating the script name of the object with the procedure name.
Syntax
object.ShowVBAProcedure (bstrProcName, [objObject])
Properties
The ShowVBAProcedure 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 or event to be located in the VBA code window. |
Object |
Object. The name of the object to which the procedure or event is associated. |
Remarks
If the object is omitted, the procedure name is used by itself. If the procedure is not found, the focus will be set to the top of the script window. For example, to set the code window to Rect2's Mouse Down event, you would make the following call:
ShowVBAProcedure("MouseDown", Rect2)
To find any subroutine within the picture's project, you would make the following call:
ShowVBAProcedure("MySubProcedure")