Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Excel Custom Menu - Insert Where?

Greetings:
Still looking to find out how to specify where in the menu line-up,
my custom menus will be placed.
I have 5 custom menus, and more to come.
It would be more than a little beneficial if I could locate them in
a specific sequence on the menu line - easier to use that way.
Questions:
1: Can this be done?
2: If yes, How?
3: Is it possible to create a 2nd menu line?
4: If yes, How?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Excel Custom Menu - Insert Where?

http://www.j-walk.com/ss/excel/tips/tip53.htm

either use his method or look at the code to see how to work with commandbars:

http://support.microsoft.com/default...b;en-us;830502
How to customize menus and menu bars in Excel

http://support.microsoft.com/?id=159619
XL97: Sample Macros for Customizing Menus and Submenus

http://support.microsoft.com/?id=213550
XL2000: Sample Macros for Customizing Menus and Submenus


http://support.microsoft.com/default...b;en-us;166755
File Title: Customizing Menu Bars, Menus, and Menu Items in Microsoft(R)
Excel 97
File Name: WE1183.EXE
File Size: 58041 bytes
File Date: 06/20/97
Keywords: kbfile kbappnote
Description: This Application Note can help you learn techniques for writing
Visual Basic(R) for Applications code to customize menus in Microsoft Excel
97. This Application Note contains code examples that you can use with the
following elements: menu bars, menus, menu items, submenus, and shortcut
menus.

--
Regards,
Tom Ogilvy




"BEEJAY" wrote:

Greetings:
Still looking to find out how to specify where in the menu line-up,
my custom menus will be placed.
I have 5 custom menus, and more to come.
It would be more than a little beneficial if I could locate them in
a specific sequence on the menu line - easier to use that way.
Questions:
1: Can this be done?
2: If yes, How?
3: Is it possible to create a 2nd menu line?
4: If yes, How?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Excel Custom Menu - Insert Where?

Tom: Thanks for the prompt response.
Once again, I think I must have expressed myself unclearly.
I have 5 top level menu Items, each with up to about 20 sub-levels
4 of the top level menus items were made with J-Walks Menu-Maker
1 was made the "simple" way - (non-VBA)
Looking thru your suggested sites I could not find anything that would
indicate answers to my specific questions, in light of the clarification
just given. Am I again missing something simple here?


"Tom Ogilvy" wrote:

http://www.j-walk.com/ss/excel/tips/tip53.htm

either use his method or look at the code to see how to work with commandbars:

http://support.microsoft.com/default...b;en-us;830502
How to customize menus and menu bars in Excel

http://support.microsoft.com/?id=159619
XL97: Sample Macros for Customizing Menus and Submenus

http://support.microsoft.com/?id=213550
XL2000: Sample Macros for Customizing Menus and Submenus


http://support.microsoft.com/default...b;en-us;166755
File Title: Customizing Menu Bars, Menus, and Menu Items in Microsoft(R)
Excel 97
File Name: WE1183.EXE
File Size: 58041 bytes
File Date: 06/20/97
Keywords: kbfile kbappnote
Description: This Application Note can help you learn techniques for writing
Visual Basic(R) for Applications code to customize menus in Microsoft Excel
97. This Application Note contains code examples that you can use with the
following elements: menu bars, menus, menu items, submenus, and shortcut
menus.

--
Regards,
Tom Ogilvy




"BEEJAY" wrote:

Greetings:
Still looking to find out how to specify where in the menu line-up,
my custom menus will be placed.
I have 5 custom menus, and more to come.
It would be more than a little beneficial if I could locate them in
a specific sequence on the menu line - easier to use that way.
Questions:
1: Can this be done?
2: If yes, How?
3: Is it possible to create a 2nd menu line?
4: If yes, How?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Excel Custom Menu - Insert Where?

If you are already using the menu maker (which you didn't previously state),
then

Level Caption Position/Macro
1 &MyMenu 10

the 10 indicates to put it before the 10 controls

After it runs:
? commandbars(1).Controls(10).Caption
&MyMenu
? commandbars(1).Controls(11).Caption
&Window
? commandbars(1).Controls(9).Caption
A&ction

So the &window controls was the 10th item on the menu. the menumaker placed
the new menu before that one.

The menu maker shows how to make the second line

Put a 2 in the level column.

The only reason you would not find the answers in the links for doing this
outside the menu maker would be not making any effort to read them as they
are the definitive documents for describing working with commandbars
programmatically.

If your looking for canned code examples written by someone else:
http://tinyurl.com/hq37a

should have loads of it.

--
Regards,
Tom Ogilvy




"BEEJAY" wrote:

Tom: Thanks for the prompt response.
Once again, I think I must have expressed myself unclearly.
I have 5 top level menu Items, each with up to about 20 sub-levels
4 of the top level menus items were made with J-Walks Menu-Maker
1 was made the "simple" way - (non-VBA)
Looking thru your suggested sites I could not find anything that would
indicate answers to my specific questions, in light of the clarification
just given. Am I again missing something simple here?


"Tom Ogilvy" wrote:

http://www.j-walk.com/ss/excel/tips/tip53.htm

either use his method or look at the code to see how to work with commandbars:

http://support.microsoft.com/default...b;en-us;830502
How to customize menus and menu bars in Excel

http://support.microsoft.com/?id=159619
XL97: Sample Macros for Customizing Menus and Submenus

http://support.microsoft.com/?id=213550
XL2000: Sample Macros for Customizing Menus and Submenus


http://support.microsoft.com/default...b;en-us;166755
File Title: Customizing Menu Bars, Menus, and Menu Items in Microsoft(R)
Excel 97
File Name: WE1183.EXE
File Size: 58041 bytes
File Date: 06/20/97
Keywords: kbfile kbappnote
Description: This Application Note can help you learn techniques for writing
Visual Basic(R) for Applications code to customize menus in Microsoft Excel
97. This Application Note contains code examples that you can use with the
following elements: menu bars, menus, menu items, submenus, and shortcut
menus.

--
Regards,
Tom Ogilvy




"BEEJAY" wrote:

Greetings:
Still looking to find out how to specify where in the menu line-up,
my custom menus will be placed.
I have 5 custom menus, and more to come.
It would be more than a little beneficial if I could locate them in
a specific sequence on the menu line - easier to use that way.
Questions:
1: Can this be done?
2: If yes, How?
3: Is it possible to create a 2nd menu line?
4: If yes, How?

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
excel 2007 add custom menu ILearner Excel Discussion (Misc queries) 17 April 17th 07 07:18 PM
Adding Sub Menu Item to Current Custom Menu Renato Excel Programming 2 December 19th 05 12:48 AM
Excel 2003 bug? VBA custom menu disappearing O_lanke Excel Programming 1 December 13th 04 11:53 AM
Custom Menu return to Excel Menu upon Closing VetcalcReport Excel Programming 2 August 2nd 04 02:59 PM


All times are GMT +1. The time now is 03:42 AM.

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

About Us

"It's about Microsoft Excel"