Refering to Submenu Items in a Menubar

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
 
M

Marshall Barton

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)
 

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