LastRow Property [WksRange]

The LastRow property returns the last row in the range. Returns a Long. This is a read-only property.

Syntax

object.LastRow

object.LastRow =LastRow

Example

This example demonstrates how to return the last row of a range.

Debug.Print WksRange.LastRow

 

Used by: WksRange object