The following example uses the ProcBodyLine property to return the line number of the first line of code in the specified procedure, SetupTabs, in a particular code pane.
Debug.Print Application.VBE.CodePanes(3).CodeModule.ProcBodyLine ("SetupTabs", vbext_pk_Proc)