Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 971 Bytes

Project.Project.CommandBars.md

File metadata and controls

44 lines (27 loc) · 971 Bytes
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Project.CommandBars property (Project)
project-server
Project.Project.CommandBars
8b987a76-0aa4-537b-871b-ad36338b2b4e
06/08/2017
medium

Project.CommandBars property (Project)

Gets a CommandBars collection that represents all the command bars in the project. Read-only CommandBars.

Syntax

expression.CommandBars

expression A variable that represents a Project object.

Remarks

For more information, see the CommandBars object in the Office Developer Reference.

Example

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]