Vra

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 dit nuttig?

Oplossing

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
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top