hi all.
I tried the following code, but it didn't work:
var
MySelection: TsCellRangeArray;
begin
SetLength(MySelection, 2);
MySelection[0].Col1 := 3;
MySelection[0].Row1 := 7;
MySelection[0].Col2 := 3;
MySelection[0].Row2 := 9;
MySelection[1].Col1 := 5;
MySelection[1].Row1 := 8;
MySelection[1].Col2 := 5;
MySelection[1].Row2 := 10;
wsGrid.RangeSelectMode := rsmMulti;
wsGrid.Worksheet.SetSelection(MySelection);
wsGrid.Repaint;
thanks.