CommandBarButton Object

Lists the CommandBarButton methods and properties.
Table 1. CommandBarButton Object Methods and Properties

Method or Property

Description

Delete Method (CommandBarButton Object)Delete the command bar button in the corresponding command bar.
BitmapFile Property (CommandBarButton Object)Sets or returns the bitmap file used by the commandbar button. The bitmap should be 16 x 16.
BitmapResource Property (CommandBarButton Object)Sets or returns the id of the bitmap resource to load. It is loaded from the ResourceDLL.
Caption Property (CommandBarButton Object)Sets or returns the caption text of the commandbar button. The caption text is used as the commandbar button's ScreenTip.
DescriptionText Property (CommandBarButton Object)Sets or returns the description text of the commandbar button. The text is displayed in the status bar.
Enabled Property (CommandBarButton Object)Enable or disable the commandbar button. Only user-defined command can be enabled / disabled by this property.
ExecuteMethod Property (CommandBarButton Object)Sets or returns the procedure associated with the commandbar button.
Id Property (CommandBarButton Object)Returns the ID of the command associated with the commandbar button.
OnAction Property (CommandBarButton Object)Sets or returns the action to be taken when the commandbar button is clicked.
ResourceDLL Property (CommandBarButton Object)Sets or returns the .dll from which the bitmap resource for the button is loaded.
Target Property (CommandBarButton Object)Sets or returns the target COM object associated with the commandbar button.
TooltipText Property (CommandBarButton Object)Sets or returns the tooltip text of the commandbar button.
UpdateMethod Property (CommandBarButton Object)Sets or returns the method when to enable or disable the commandbar button.