If you change your approach slightly to running a workbook that creates the
menu dynamically, you can pass that file around. If your colleagues put it
in the XLStart directory, it will be automatically loaded.
This is an example that I posted recently of the sort of code you need. This
is for a toolbar, but a menubar is very similar.
You can have a workbook that create a toolbar dynamically. This example adds
an item to the formatting toolbar.
Dim oCtl As CommandBarControl
With Application.CommandBars("Formatting")
Set oCtl = .Controls.Add(Type:=msoControlButton, temporary:=True)
With oCtl
.BeginGroup = True
.Caption = "myButton1"
.OnAction = "myMacro"
.FaceId = 27
End With
End With
You can add to any toolbar, or even create your own. like so
Dim oCB As CommandBar
Dim oCtl As CommandBarControl
Set oCB = Application.CommandBars.Add(Name:="myCB", temporary:=True)
With oCB
Set oCtl = .Controls.Add(Type:=msoControlButton, temporary:=True)
With oCtl
.BeginGroup = True
.Caption = "myButton1"
.OnAction = "myMacro"
.FaceId = 27
End With
.Visible = True
.Position = msoBarTop
End With
Or you can be a lot more extravagant.
As I alway say with this, I also suggest you check out John Walkenbach's
site at
http://j-walk.com/ss/excel/tips/tip67.htm to help find the