Refering to Submenu Items in a Menubar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a custom menubar and with the following code I can refer to the 3rd
menuitem :
Set v = CommandBars("mainmenu").Controls(3)
So far so good.

But how can I refer to the subitems of this 3rd menuitem.There are 5 options
below which I want to make visible/invisble through code.

Example:
File Edit Programms
Programm1 --> ?
Programm2 --> ?
etc.

Many Thanks in advance
 
Massive850 said:
I have a custom menubar and with the following code I can refer to the 3rd
menuitem :
Set v = CommandBars("mainmenu").Controls(3)
So far so good.

But how can I refer to the subitems of this 3rd menuitem.There are 5 options
below which I want to make visible/invisble through code.

Example:
File Edit Programms
Programm1 --> ?
Programm2 --> ?
etc.


CommandBars("mainmenu").Controls(3).Controls(N)
 
Back
Top