

Start:=ActiveDocument.Paragraphs(1).Range.Start, _Įnd:=ActiveDocument.Paragraphs(4).Range.End) The following example applies the Normal style to the first four paragraphs in the active document. To apply a style to a range, paragraph, or multiple paragraphs, set the Style property to a user-defined or built-in style name. & "Style name= " & ActiveDocument.Styles(1).NameLocal & ActiveDocument.Styles(1).BaseStyle & vbCr _ The following example displays the base style and style name of the first style in the Styles collection. Note that Styles(1) is the first style in the alphabetical list. The style index number represents the position of the style in the alphabetically sorted list of style names.

ActiveDocument.Styles(wdStyleHeading1).Font.Bold = False

The following example sets the built-in Heading 1 style to not be bold. ActiveDocument.Styles("Color").Font.Name = "Arial" The following example modifies the font name of the user-defined style named "Color" in the active document. You must exactly match the spelling and spacing of the style name, but not necessarily its capitalization. Use Styles (Index), where Index is the style name, a WdBuiltinStyle constant or index number, to return a single Style object. The Styles collection includes all the styles in the specified document. The Style object is a member of the Styles collection. The Style object includes style attributes (such as font, font style, and paragraph spacing) as properties of the Style object. Represents a single built-in or user-defined style.
