ToolbarButtons Method

Applies To

Toolbar Object.

Description

Accessor. Returns an object that represents a single toolbar button (a ToolbarButton object, Syntax 1) or a collection of toolbar buttons (a ToolbarButtons object, Syntax 2) on the specified toolbar.

Syntax 1

object.ToolbarButtons(index)

Syntax 2

object.ToolbarButtons

object

Required. The Toolbar object.

index

Required for Syntax 1. The number of the button.

Example

This example deletes the New Workbook button from the Standard toolbar.


Application.Toolbars("Standard").ToolbarButtons(1).Delete