In versions of Excel earlier than Excel 97, if you use a macro to create a custom menu and do not specify the menu bar position where the new menu should appear, the new menu always appears to the left of the
Help menu. For example, if you execute this line of Visual Basic macro code
MenuBars(xlWorksheet).Menus.Add Caption:="Custom"
the new
Custom menu will appear to the left of the
Help menu.
This behavior occurs because the
Help menu has special status in earlier versions of Microsoft Excel: the
Help menu is always the rightmost menu on a menu bar.
In Microsoft Excel 2000, the
Help menu has no special status. Because of this, Excel always adds new menus to the right of the
Help menu.
If your custom menu needs to appear to the left of the
Help menu, use the workaround shown earlier in this article to create the custom menu.