A
Andy Brown
I found some great code from Patrick Molloy for the above, controlled by
Workbook_Activate. Under normal circumstances it would place a new menu
before the Help menu, however I have (and others may also have) custom items
on the menu bar. I believe the section that controls the positioning is -
With CommandBars("Worksheet Menu Bar")
Set cmd = .Controls.Add(msoControlPopup, _
before:=.Controls.Count, _
temporary:=True)
End With
cmd.Visible = True
, presumably the "before:=.Controls.Count" bit, ie: one before however many
menu bar items there are.
Is there a way Excel can determine the actual number position of the Help
menu in the bar and place it there minus one?
TIA,
Andy
Workbook_Activate. Under normal circumstances it would place a new menu
before the Help menu, however I have (and others may also have) custom items
on the menu bar. I believe the section that controls the positioning is -
With CommandBars("Worksheet Menu Bar")
Set cmd = .Controls.Add(msoControlPopup, _
before:=.Controls.Count, _
temporary:=True)
End With
cmd.Visible = True
, presumably the "before:=.Controls.Count" bit, ie: one before however many
menu bar items there are.
Is there a way Excel can determine the actual number position of the Help
menu in the bar and place it there minus one?
TIA,
Andy