ADD.BAR macro

Creates a new menu bar and returns the bar ID number. Use the bar ID number to identify the menu in functions that display and add menus and commands to the menu bar. You can also use ADD.BAR to restore a built-in menu bar with its original menus and commands.

Syntax

ADD.BAR(bar_num)

Bar_num    is the number of a built-in menu bar that you want to restore. Use ADD.BAR(bar_num) to restore an unaltered version of a built-in menu bar after you have made changes to the menu bar's menus and commands. See ADD.COMMAND for a list of ID numbers for built-in menu bars.

Important   Restoring a built-in menu bar will remove menus and commands added by other macros. Use ADD.COMMAND and ADD.MENU to restore individual commands and menus.

Remarks

Example

The following formula creates a new menu bar and returns a bar ID number:

ADD.BAR()

Related Functions

ADD.COMMAND   Adds a command to a menu

ADD.MENU   Adds a menu to a menu bar

DELETE.BAR   Deletes a menu bar

SHOW.BAR   Displays a menu bar

Return to index