Question

Using the Move method of the CommandBar object I managed to move a CommandBarControl using the following syntax:

CommandBars("TopMenu").Controls("SomeControl").Move CommandBars("AnotherTopMenu")

I need, however, to move the control to a submenu (or popup menu) within a CommandBar and cannot find a way of doing it, as the first argument of the Move method will only accept a CommandBar object

Was it helpful?

Solution

I subsequently found the answer here.

In a nutshell you need to use the CommandBar property of the popupmenu control.

CommandBars("AnotherTopMenu").Controls("PopupMenu").CommandBar
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top