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

Hi all,

I have designed a custom toolbar that I have attached to the
developing workbook, and then saved as an add in. I intend to
disseminate this to colleagues as an addin, however I also want them
to have the option of having the toolbar as a dropdown menu
(incorporated on the main "worksheet menu bar").

Is it possible to attach additional menus, like you can with toolbars?
Or permanently create a new menu in code?

If not, I guess it is necessary for the addin to automatically
generate the menu when it loads, but i cant work out how to do this.
Perhaps create a new menu, and then copy and paste each toolbar button
into it (again, not sure how though)? There are 10 or so buttons,
presumably you can iterate, but they all have custom names, button
images, and assigned macros.

If you are able to illustrate with code, much appreciated!

Thanks

Stu
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Custom menu's

Here is an article which talks about attaching toolbars:

http://www.microsoft.com/exceldev/articles/toolbatt.htm

Here is an article about creating commandbars with code:
http://msdn.microsoft.com/library/techart/ofcmdbar.htm


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
--
Regards,
Tom Ogilvy


"Stu" wrote in message
m...
Hi all,

I have designed a custom toolbar that I have attached to the
developing workbook, and then saved as an add in. I intend to
disseminate this to colleagues as an addin, however I also want them
to have the option of having the toolbar as a dropdown menu
(incorporated on the main "worksheet menu bar").

Is it possible to attach additional menus, like you can with toolbars?
Or permanently create a new menu in code?

If not, I guess it is necessary for the addin to automatically
generate the menu when it loads, but i cant work out how to do this.
Perhaps create a new menu, and then copy and paste each toolbar button
into it (again, not sure how though)? There are 10 or so buttons,
presumably you can iterate, but they all have custom names, button
images, and assigned macros.

If you are able to illustrate with code, much appreciated!

Thanks

Stu



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Custom menu's

Stu,

Take a look at the previous thread 'Excel Menus That Fold Out' in this
thread. It is on the same topic.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Stu" wrote in message
m...
Hi all,

I have designed a custom toolbar that I have attached to the
developing workbook, and then saved as an add in. I intend to
disseminate this to colleagues as an addin, however I also want them
to have the option of having the toolbar as a dropdown menu
(incorporated on the main "worksheet menu bar").

Is it possible to attach additional menus, like you can with toolbars?
Or permanently create a new menu in code?

If not, I guess it is necessary for the addin to automatically
generate the menu when it loads, but i cant work out how to do this.
Perhaps create a new menu, and then copy and paste each toolbar button
into it (again, not sure how though)? There are 10 or so buttons,
presumably you can iterate, but they all have custom names, button
images, and assigned macros.

If you are able to illustrate with code, much appreciated!

Thanks

Stu



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Custom menu's

I have commandbar examples on my website

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Stu" wrote in message
m...
Hi all,

I have designed a custom toolbar that I have attached to the
developing workbook, and then saved as an add in. I intend to
disseminate this to colleagues as an addin, however I also want them
to have the option of having the toolbar as a dropdown menu
(incorporated on the main "worksheet menu bar").

Is it possible to attach additional menus, like you can with toolbars?
Or permanently create a new menu in code?

If not, I guess it is necessary for the addin to automatically
generate the menu when it loads, but i cant work out how to do this.
Perhaps create a new menu, and then copy and paste each toolbar button
into it (again, not sure how though)? There are 10 or so buttons,
presumably you can iterate, but they all have custom names, button
images, and assigned macros.

If you are able to illustrate with code, much appreciated!

Thanks

Stu



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
Drop Down menu's Lee Excel Discussion (Misc queries) 2 December 4th 07 04:35 PM
Pull Down menu's Robin Excel Worksheet Functions 7 October 7th 05 09:31 PM
Custom Menu's Fgomez Excel Discussion (Misc queries) 1 April 19th 05 02:43 PM
Drop Down Menu's abfabrob Excel Discussion (Misc queries) 4 February 4th 05 02:19 PM
Pull Down Menu's [email protected] Excel Programming 5 November 3rd 03 05:48 PM


All times are GMT +1. The time now is 12:23 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"