_Worksheet.UsedRange Property

Returns a Range object that represents the used range on the specified worksheet. Read-only.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property UsedRange As Range
    Get
'Usage
Dim instance As _Worksheet
Dim value As Range

value = instance.UsedRange
Range UsedRange { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Range

See Also

Reference

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace