Hello everybody
I have the following code that let me navigate to specific module:
Sub ShowMacroCode()
Dim ModName As String
Dim ProcName As String
Dim VBProj As Object
ModName = "Mod_Test"
ProcName = "TestC"
Set VBProj = Application.VBE.ActiveVBProject
With VBProj.VBComponents(ModName).CodeModule
.CodePane.TopLine = .ProcStartLine(ProcName, vbext_pk_Proc)
.CodePane.Show
End With
End Sub
It works well .. but I want the code to go directly to the specified procedure ...which is here (TestC)
The code navigates to the specific module but not to the specific procedure
Here's an attachment
Bookmarks