First Property

Microsoft Word Visual Basic

Returns a Range object that represents the first sentence, word, or character in a document, selection or range.

expression.First

expression    Required. An expression that returns one of the above objects.

ShowFirst property as it applies to the Columns object.

Returns a Column object that represents the first item in the Columns collection.

expression.First

expression    Required. An expression that returns a Columns object.

ShowFirst property as it applies to the Paragraphs object.

Returns a Paragraph object that represents the first item in the Paragraphs collection.

expression.First

expression    Required. An expression that returns a Paragraphs object.

ShowFirst property as it applies to the Rows object.

Returns a Row object that represents the first item in the Rows collection.

expression.First

expression    Required. An expression that returns a Rows object.

ShowFirst property as it applies to the Sections object.

Returns a Section object that represents the first item in the Sections collection.

expression.First

expression    Required. An expression that returns a Sections object.

Example

ShowAs it applies to the Paragraph object.

This example right-aligns the first paragraph in the selection.

Selection.Paragraphs.First.Alignment = wdAlignParagraphRight
				

ShowAs it applies to the Rows object.

This example applies shading and a bottom border to the first row in the first table of the active document.

ActiveDocument.Tables(1).Borders.Enable = False
With ActiveDocument.Tables(1).Rows.First
    .Shading.Texture = wdTexture10Percent
    .Borders(wdBorderBottom).LineStyle = wdLineStyleSingle
End With