Determines whether this cell range is valid in the specified worksheet and
whether to treat it as a span.
'Declaration
Public Overloads Function IsValidRange( _
ByVal As Worksheet, _
ByVal As System.Boolean _
) As System.Boolean
'Usage
Dim instance As CellRange
Dim worksheet As Worksheet
Dim isSpan As System.Boolean
Dim value As System.Boolean
value = instance.IsValidRange(worksheet, isSpan)
public System.bool IsValidRange(
Worksheet ,
System.bool
)
Parameters
- worksheet
- The Worksheet object.
- isSpan
- Whether to treat the cell range as a span or a selection.
Return Value
true
if the cell range is a valid range in the specified sheet; otherwise, false
.