Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Menus


I am experimenting with custom menus and was wondering if there was
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 men
the selected item is found in (Barney, Betty or Wilma)

--
fazst
-----------------------------------------------------------------------
fazstp's Profile: http://www.excelforum.com/member.php...fo&userid=3057
View this thread: http://www.excelforum.com/showthread.php?threadid=50797

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Custom Menus

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Custom Menus

Fazstp,

Could you use .parent ?

Pete




"fazstp" wrote:


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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom menus Stephen[_21_] Excel Programming 3 February 13th 05 07:25 PM
Custom faces for custom menus/commandbars Stu Valentine Excel Programming 1 September 17th 04 04:28 AM
custom menus Bob Phillips[_6_] Excel Programming 3 May 6th 04 10:31 PM
Custom menus Lee Excel Programming 4 November 12th 03 11:53 PM
Custom Menus Andy Wiggins[_2_] Excel Programming 0 September 19th 03 06:10 AM


All times are GMT +1. The time now is 03:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"