Excel: Cannot Use ADD.BAR to Restore Custom Bars

ID: Q70109


The information in this article applies to:


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

Additional query words: 3.0 4.00


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 21, 1999