Microsoft KB Archive/70109

{|
 * width="100%"|

Excel: Cannot Use ADD.BAR to Restore Custom Bars

 * }

-

The information in this article applies to:


 * Microsoft Excel for the Macintosh, versions 3.0, 4.0

-

SUMMARY
In Microsoft Excel versions 3.0 and 4.0, the argument &quot;bar_num&quot; in the ADD.BAR command can only be the number of a built-in menu bar (1-6). You cannot specify a custom bar number (7-15) to restore.

MORE INFORMATION
Excel allows you to restore the built-in menu bars that have been changed with functions such as ADD.MENU, DELETE.MENU, ADD.COMMAND, and DELETE.COMMAND. If you specify the number of the bar to be restored, Excel will restore that bar to its defaults (the way it looked before any user modification took place).

For example, if the main menu bar, bar 1, has been changed, the following macro will restore and display the bar:

  =ADD.BAR(1) =SHOW.BAR(1) =RETURN

This method of restoration is only available to the built-in bars (1-6). It will not function for any custom bars (7-15).