_Document.CommandBars Property

Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.

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

ReadOnly Property CommandBars As CommandBars
Dim instance As _Document
Dim value As CommandBars

value = instance.CommandBars

Property Value

Type: CommandBars

Use the CustomizationContext property to set the template or document context prior to accessing the CommandBars collection.