Share via


Range.Areas Property

Returns an Areas collection that represents all the ranges in a multiple-area selection.

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

Syntax

'Declaration
ReadOnly Property Areas As Areas
    Get
'Usage
Dim instance As Range
Dim value As Areas

value = instance.Areas
Areas Areas { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Areas

Remarks

For a single selection, the Areas property returns a collection that contains one object — the original Range object itself. For a multiple-area selection, the Areas property returns a collection that contains one object for each selected area.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace