D
Dale Fye
I've got the following code in an application, and need to know how to begin
a group (put a dividing line between it and the previous menu item) at the
Gap Synthesis menu item. I know how to do this with commandbars that are
built using the View -> Toolbars -> Customize dialog, but not how to do it in
code.
Set cbr = CommandBars.Add("MyMenu", BarPopup, , True)
With cbr
Set cbrButton = cbr.Controls.Add(ControlButton, , , , True)
With cbrButton
.Caption = "&DoSomething"
.Tag = "DoSomething"
.OnAction = "=fnDoSomething()"
End With
Set cbrButton = cbr.Controls.Add(ControlButton, , , , True)
With cbrButton
.Caption = "&Gap Synthesis"
.Tag = "Gap Synthesis"
.OnAction = "=fnGapSynthesis"
End With
End With
Dale
a group (put a dividing line between it and the previous menu item) at the
Gap Synthesis menu item. I know how to do this with commandbars that are
built using the View -> Toolbars -> Customize dialog, but not how to do it in
code.
Set cbr = CommandBars.Add("MyMenu", BarPopup, , True)
With cbr
Set cbrButton = cbr.Controls.Add(ControlButton, , , , True)
With cbrButton
.Caption = "&DoSomething"
.Tag = "DoSomething"
.OnAction = "=fnDoSomething()"
End With
Set cbrButton = cbr.Controls.Add(ControlButton, , , , True)
With cbrButton
.Caption = "&Gap Synthesis"
.Tag = "Gap Synthesis"
.OnAction = "=fnGapSynthesis"
End With
End With
Dale