Share via


CommandBarButton.BuiltInFace Property

Office Developer Reference

Is True if the face of a command bar button control is its original built-in face. Read/write.

Aa432237.vs_note(en-us,office.12).gif  Note
The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon."

Syntax

expression.BuiltInFace

expression   A variable that represents a CommandBarButton object.

Remarks

This property can only be set to True, which will reset the face to the built-in face. Read/write Boolean.

Example
This example determines whether the face of the first control on the command bar named "Custom" is its built-in button face. If it is, the example copies the button face to the Clipboard.

Visual Basic for Applications
  Set myControl = CommandBars("My Custom Bar").Controls(1)
With myControl
    If .BuiltInFace = True Then .CopyFace
End With

See Also