Excel: Cannot Use ADD.BAR to Restore Custom Bars

Last reviewed: November 29, 1994
Article ID: Q70109
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 "bar_num" 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).

REFERENCES

"Microsoft Excel Function Reference," version 4.0, page 7

"Microsoft Excel Function Reference," version 3.0, pages 4-5


KBCategory: kbusage
KBSubcategory:

Additional reference words: 3.0 3.00 4.0 4.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 29, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.