Selects one o more A1-style ranges on a classic XLS worksheet e writes a multi-area Selection record when needed
Sintassi
function SelectAreas(const Areas: array of WideString): Integer; overload;
function SelectAreas(const Areas: array of WideString; ActiveAreaIndex: Integer): Integer; overload;
Parametri
| Areas |
One o more A1-style cell o range references, such as 'A1:B2' o 'D4' |
| ActiveAreaIndex |
0-based index of the active area. If omitted, the first area is active |
Valore restituito
Restituisce 1 when the selection is accepted, o -1 when the area list is empty, the active index is invalid, o any A1 reference cannot be parsed
Esempio
Workbook.Sheets[1].SelectAreas(
['A1:B2', 'D4'],
1);
Vedere also