| RowOffset | Integer。範圍要偏移的列數(可為正、負或 0)。正值向下偏移,負值向上偏移 |
| ColumnOffset | Integer。範圍要偏移的欄數(可為正、負或 0)。正值向右偏移,負值向左偏移 |
With Workbook.Sheets[1].Range['A1', 'A1'] do begin
for row := 0 to 1000 do
for col := 0 to 100 do
Offset[row, col].Value := (row + 1)*(col + 1);
end;