Try
With Commandbars.ActionControl
Msgbox .Parent.Caption
End With
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"fazstp" wrote in
message ...
I am experimenting with custom menus and was wondering if there was a
way to find which root menu an item was selected from.
ie.
Custom Menu "Fred"
Contains three sub menus
"Barney", "Betty", "Wilma"
Each containing a menu of various selectable options
When the items are selected can I tell programatically which sub menu
the selected item is found in (Barney, Betty or Wilma)?
--
fazstp
------------------------------------------------------------------------
fazstp's Profile:
http://www.excelforum.com/member.php...o&userid=30574
View this thread: http://www.excelforum.com/showthread...hreadid=507972