BuiltIn Property

Applies To

MenuBar Object, Toolbar Object, ToolbarButton Object.

Description

True if the object is built-in (part of Microsoft Excel, as opposed to a custom object). Read-only.

See Also

BuiltInFace Property.

Example

This example lists the names of all built-in buttons on the Formatting toolbar. The names are placed in the first column on Sheet1.


rowNumber = 1
For Each btn In Application.Toolbars("Formatting").ToolbarButtons
    If btn.BuiltIn Then
        Worksheets("Sheet1").Cells(rowNumber, 1).Value = btn.Name
        rowNumber = rowNumber + 1
    End If
Next btn

This example resets the face of each built-in button on the Standard toolbar that has a custom face.


For Each btn In Application.Toolbars("Standard").ToolbarButtons
    If btn.BuiltIn And Not btn.BuiltInFace Then
        If Not(btn.IsGap) Then  ' don't try to reset the separator gap!
            btn.BuiltInFace = True
        End If
    End If
Next btn