Rows [WksDocument]

 

The Rows method returns a WksRange object containing one or more entire rows of cells.

 

Syntax

object.Rows( Row1, Row2 )

 

Parameter

Type

Description

Row1

Variant

required; first row

Row2

Variant

optional; last row

 

Remarks

See Specifying Cell Coordinates for more information on selecting cells.

 

Example

This example demonstrates how to assign entire rows of cells to the variable named WksRange.

 

Dim WksRange As Object

Set WksRange = Wks.Rows(Row1:=1, Row2:=6)

 

Used by: WksDocument object