indi visual
Member
Something I've been trying to do for long time now is opening the VBA editor to go in directly to a specific line of code.
I've been using the 3 codes beneath (but my codes have been so lengthy it would really be helpful for me to jump in exactly at a specified line).
Sub Open_VBA_Editor01()
'''' Opens General Editor
Application.VBE.MainWindow.Visible = True
End Sub
Sub Open_VBA_Editor02()
'''' Specific Standard Module
With Application
.Goto "My_Macro_Test"
End With
End Sub
Sub Open_VBA_Editor03()
''' Specific User Form Code
With Application.VBE
.ActiveVBProject.VBComponents("My_UserForm").CodeModule.CodePane.Show
End With
End Sub
I've been using the 3 codes beneath (but my codes have been so lengthy it would really be helpful for me to jump in exactly at a specified line).
Sub Open_VBA_Editor01()
'''' Opens General Editor
Application.VBE.MainWindow.Visible = True
End Sub
Sub Open_VBA_Editor02()
'''' Specific Standard Module
With Application
.Goto "My_Macro_Test"
End With
End Sub
Sub Open_VBA_Editor03()
''' Specific User Form Code
With Application.VBE
.ActiveVBProject.VBComponents("My_UserForm").CodeModule.CodePane.Show
End With
End Sub