G Guest Apr 19, 2005 #1 how can I get the names of all menus in a form Can anyone send me the code please tanks
H Herfried K. Wagner [MVP] Apr 19, 2005 #2 Carlos AZ said: how can I get the names of all menus in a form Click to expand... 'MainMenu' is, like timers, for example, a component. See (complete thread): <URL:http://groups.google.de/[email protected]> Keywords: enumerate, components, controls, form.
Carlos AZ said: how can I get the names of all menus in a form Click to expand... 'MainMenu' is, like timers, for example, a component. See (complete thread): <URL:http://groups.google.de/[email protected]> Keywords: enumerate, components, controls, form.
G Guest Apr 19, 2005 #3 the code: For Each mn As MenuItem In Me.MainMenu1.MenuItems myname = mn.Text Next only get the top menu names tanks
the code: For Each mn As MenuItem In Me.MainMenu1.MenuItems myname = mn.Text Next only get the top menu names tanks
H Herfried K. Wagner [MVP] Apr 19, 2005 #4 Carlos AZ said: For Each mn As MenuItem In Me.MainMenu1.MenuItems myname = mn.Text Next Click to expand... You will have to recursively enumerate menu items. If a menu item has subitems, 'mn.MenuItems.Count' will return a number greater than 0.
Carlos AZ said: For Each mn As MenuItem In Me.MainMenu1.MenuItems myname = mn.Text Next Click to expand... You will have to recursively enumerate menu items. If a menu item has subitems, 'mn.MenuItems.Count' will return a number greater than 0.