AllowPropertyToolbox Property

Microsoft Office Web Components Visual Basic

Determines whether the user can display the Commands and Options dialog box at run time. Setting the AllowPropertyToolbox property to False disables the Commands and Options button on the toolbar. The default value is True. Read/write Boolean.

expression.AllowPropertyToolbox

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example disables the Commands and Options button on the Spreadsheeet1 toolbar at run time.

Spreadsheet1.AllowPropertyToolbox = False