ProcStartLine Property Example

The following example uses the ProcStartLine property to return the line at which the specified procedure begins in a particular code pane.

Debug.Print Application.VBE.CodePanes(3).CodeModule.ProcStartLine ("SetupTabs", vbext_pk_Proc)