Link Search Menu Expand Document

SSpread.SetSelection Method

Explanation Select the cell block on the spreadsheet.

Refer to the SelBlockCol, SelBlockCol2, SelBlockRow and SelBlockRow2 properties to get the selected cell block.
Call format SetSelection(col, row, col2, row2)
Return value None
Arguments col The leftmost column number of the cell block to select
row Row number at the top of the cell block to select
col2 Rightmost column number of the cell block to select
row2 Row number at the bottom of the cell block to select
Exception EXT-28 An error occurred in the SetSelection method
Example of use
    SetSelection(2, 3, 4, 5);
    print(SelBlockCol, SelBlockRow, SelBlockCol2, SelBlockRow2, "\n");
    ClearSelection();
    
Related item SelBlockCol, SelBlockCol2, SelBlockRow, SelBlockRow2 properties
ClearSelection method