_Workbook.CommandBars Property

Returns a CommandBars object that represents the Microsoft Excel command bars. Read-only.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property CommandBars As CommandBars
    Get
'Usage
Dim instance As _Workbook
Dim value As CommandBars

value = instance.CommandBars
CommandBars CommandBars { get; }

Property Value

Type: Microsoft.Office.Core.CommandBars

Remarks

When a workbook is embedded in another application and activated by the user by double-clicking the workbook, using this property with a Workbook object returns the set of Microsoft Excel command bars available within the other application. At all other times, using this property with a Workbook object returns Nothing.

There is no programmatic way to return the set of command bars attached to a workbook.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace