Table of contents
Collapse the table of content
Expand the table of content

ProcStartLine Property

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns the line at which the specified procedure begins. Syntaxobject.ProcStartLine(procname, prockind) As Long The ProcStartLine syntax has these parts:

objectRequired. An object expression that evaluates to an object in the Applies To list.
procnameRequired. A String containing the name of the procedure.
prockindRequired. Specifies the kind of procedure to locate. Because property procedures can have multiple representations in themodule, you must specify the kind of procedure you want to locate. All procedures other than property procedures (that is, Sub and Function procedures) use vbext_pk_Proc.

You can use one of the following constants for the prockindargument:

vbext_pk_GetSpecifies a procedure that returns the value of a property.
vbext_pk_LetSpecifies a procedure that assigns a value to a property.
vbext_pk_SetSpecifies a procedure that sets a reference to an object.
vbext_pk_ProcSpecifies all procedures other than property procedures.

Remarks A procedure starts at the first line below the End Sub statement of the preceding procedure. If the procedure is the first procedure, it starts at the end of the general Declarations section.

© 2018 Microsoft