Share via


Selection.Style Property (Word)

Returns or sets the style for the specified object. To set this property, specify the local name of the style, an integer, a WdBuiltinStyle constant, or an object that represents the style. For a list of valid constants, consult the Microsoft Visual Basic Object Browser. Read/write Variant.

Syntax

expression .Style

expression Required. A variable that represents a Selection object.

Remarks

When you return the style for a selection that includes more than one style, only the first character or paragraph style is returned.

See Also

Concepts

Selection Object Members

Selection Object