CommandbarControls.Move method for submenu

300 views Asked by At

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

1

There are 1 answers

0
E Mett On BEST ANSWER

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