Style.BuiltIn property (Word)

True if the specified object is one of the built-in styles or caption labels in Word. Read-only Boolean.

Syntax

expression.BuiltIn

expression A variable that represents a 'Style' object.

Remarks

You can specify built-in styles across all languages by using the WdBuiltinStyle constants or within a language by using the style name for the language version of Word. For example, if you specify U.S. English in your Microsoft Office language settings, the following statements are equivalent:

ActiveDocument.Styles(wdStyleHeading1) 
ActiveDocument.Styles("Heading 1")

Example

This example checks all the styles in the active document. When it finds a style that isn't built in, it displays the name of the style.

Dim styleLoop As Style 
 
For Each styleLoop in ActiveDocument.Styles 
 If styleLoop.BuiltIn = False Then 
 Msgbox styleLoop.NameLocal 
 End If 
Next styleLoop

See also

Style Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.