title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Project.CommandBars property (Project) |
project-server |
|
8b987a76-0aa4-537b-871b-ad36338b2b4e |
06/08/2017 |
medium |
Gets a CommandBars collection that represents all the command bars in the project. Read-only CommandBars.
expression.CommandBars
expression A variable that represents a Project object.
For more information, see the CommandBars object in the Office Developer Reference.
The following example lists all command bars in the project that are not currently visible.
Sub ListCommandBars()
Dim Bar As CommandBar
For Each Bar In ActiveProject.CommandBars
If Not Bar.Visible Then Debug.Print Bar.Name
Next
End Sub
[!includeSupport and feedback]