[]
Sets the range over which the sort occurs.
void SetRange(Reference rng)
Sub SetRange(rng As Reference)
Type | Name | Description |
---|---|---|
Reference | rng | Specifies the range over which the sort represented by the ISort object occurs. |
SetRange(Reference) can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.
Sets the range over which the sort occurs.
void SetRange(string rng)
Sub SetRange(rng As String)
Type | Name | Description |
---|---|---|
string | rng | Specifies the range over which the sort represented by the ISort object occurs. |
SetRange(Reference) can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.
Sets the range over which the sort occurs.
void SetRange(IRange rng)
Sub SetRange(rng As IRange)
Type | Name | Description |
---|---|---|
IRange | rng | Specifies the range over which the sort represented by the ISort object occurs. |
SetRange(Reference) can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.