Application.CommandBars プロパティ (Publisher)

メニュー バーと Microsoft Publisher のすべてのツール バーを表す CommandBars コレクションを設定または返します。

構文

Commandbars

expressionApplication オブジェクトを 表す変数。

戻り値

CommandBars

次の使用例は、すべてのツールバーのボタンを拡大してボタン名を表示し、メニュー表示時にすべてのメニュー項目を表示します。

Sub CmdBars() 
 
 With CommandBars 
 .LargeButtons = False 
 .DisplayTooltips = True 
 .AdaptiveMenus = False 
 End With 
 
End Sub

This example displays the Objects toolbar at the bottom of the application window.

Sub ShowObjectsToolbar 
 
 With CommandBars("Objects") 
 .Visible = True 
 .Position = msoBarBottom 
 End With 
 
End Sub

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。