M
meh2030
I have a Toolbar that comes with a company database subscriptoin and
I'm trying to find the .OnAction sub routine that accompanies the
Controls on the Toolbar. The VBA code is password protected, so I
can't just jump into the code and find the sub routine on my own.
I want to be able to insert the Application.Run [macro] into one of
the macros that I'm creating. I thought that the code below would
work to determine the OnAction sub routine, but it returns
"FDS_ON_ACTION" for each Control. Does anyone know how to get the
corresponding OnAction macro? Thanks ahead of time for any help.
Sub findOnAction()
Dim cb As CommandBar
Dim ctrl As Control
Set cb = Application.CommandBars("FactSet")
For Each ctrl In cb.Controls
Debug.Print ctrl.OnAction
Next
End Sub
Thanks,
Matt
I'm trying to find the .OnAction sub routine that accompanies the
Controls on the Toolbar. The VBA code is password protected, so I
can't just jump into the code and find the sub routine on my own.
I want to be able to insert the Application.Run [macro] into one of
the macros that I'm creating. I thought that the code below would
work to determine the OnAction sub routine, but it returns
"FDS_ON_ACTION" for each Control. Does anyone know how to get the
corresponding OnAction macro? Thanks ahead of time for any help.
Sub findOnAction()
Dim cb As CommandBar
Dim ctrl As Control
Set cb = Application.CommandBars("FactSet")
For Each ctrl In cb.Controls
Debug.Print ctrl.OnAction
Next
End Sub
Thanks,
Matt