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

I create my own menu with sub menu in Excel 97 and they are al
associated with macros. Now, I want to put this menu on othe
computers but their's too much sub-menu to recreate them all manually
so I tried to make a macro witch make those menus, but it doesn't work
When I execute the macro, the menu is blank and the macros aren'
associated with the menus. When I look to the generated code I se
that:
Application.CommandBars("Worksheet Menu Bar").Controls.Add Type:
_
msoControlPopup, Befo=11
Application.CommandBars("Menu contextuel personnalis
1").Controls.Add Type:= _
msoControlButton, ID:=2949, Befo=1
Application.CommandBars("Menu contextuel personnalis
1").Controls.Add Type:= _
msoControlButton, ID:=2949, Befo=2

So there's no rename action and no associated macro.

I could program in VB but know nothing in VBA
(I use a French Excel 97

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Recreate a macro menu

This file might be a help:
http://www.bygsoftware.com/examples/...tiveWbDemo.zip
It's in the "Menu Routines" section on page:
http://www.bygsoftware.com/examples/examples.htm

It contains VBA code that will activate a menu only when the workbook it is
in is active.

The code is open and commented.


--
Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"



"sdyman " wrote in message
...
I create my own menu with sub menu in Excel 97 and they are all
associated with macros. Now, I want to put this menu on other
computers but their's too much sub-menu to recreate them all manually,
so I tried to make a macro witch make those menus, but it doesn't work.
When I execute the macro, the menu is blank and the macros aren't
associated with the menus. When I look to the generated code I see
that:
Application.CommandBars("Worksheet Menu Bar").Controls.Add Type:=
_
msoControlPopup, Befo=11
Application.CommandBars("Menu contextuel personnalise
1").Controls.Add Type:= _
msoControlButton, ID:=2949, Befo=1
Application.CommandBars("Menu contextuel personnalise
1").Controls.Add Type:= _
msoControlButton, ID:=2949, Befo=2

So there's no rename action and no associated macro.

I could program in VB but know nothing in VBA
(I use a French Excel 97)


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Recreate a macro menu

It's seems to be a good exemples, I will read that, tank you very much!
:

--
Message posted from http://www.ExcelForum.com

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
Old Menu Macro oldjay Setting up and Configuration of Excel 1 December 15th 09 08:06 PM
How can i recreate a list without errors Bretter99 Excel Worksheet Functions 0 December 14th 07 12:30 PM
How do I force Excel to recreate links it lost in conversion. Rod Excel Discussion (Misc queries) 0 March 23rd 07 04:04 PM
Can excel read my old lotus 123 files or will I have to recreate? R P Kief Excel Discussion (Misc queries) 1 March 28th 06 04:16 AM
Recreate the upper part of a symetric data matrix 75x75 Michael Cantinotti Excel Discussion (Misc queries) 4 May 23rd 05 05:04 PM


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