DATA: excel TYPE ole2_object,
workbook TYPE ole2_object,
sheet TYPE ole2_object,
cell TYPE ole2_object,
column TYPE ole2_object,
row TYPE ole2_object.
插入列的方法:
CALL METHOD OF excel 'COLUMNS' = column EXPORTING #1 = position .
CALL METHOD OF column 'INSERT'.
插入行的方法:
CALL METHOD OF excel 'ROWS' = row EXPORTING #1 = position .
CALL METHOD OF row 'INSERT'.