How to call a commandbar controled module inside a Macro

Joined
Sep 17, 2006
Messages
1
Reaction score
0
How to run a commandbar controled module inside a Macro
I have installed an Excel module to translate selected cells into another language. The module is controled by a set of command bars. I want to call the translation module from inside a Macro, but I don't know how. I tried the macro recording, but it did not record any code. Below is part of the translation commandbar module. Can anyone tell me how to call the module from a Macro? Thanks.




Sub LocalizeButtons()

Dim CommandBar As CommandBar
Dim ComboBox As CommandBarComboBox

Set CommandBar = CommandBars("PROMT6 SmarTool")

Set CommandBarControl = CommandBar.FindControl(Tag:="PROMT_ST_DIRECTION")
Set ComboBox = CommandBarControl
ComboBox.Clear
CommandBarControl.Caption = "Direction of Translation"
CommandBarControl.TooltipText = "Direction of Translation"
CommandBarControl.Enabled = True
Set CommandBarControl = Nothing
...

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top