//log.println("Rows closed.");
}
else{
log.println("Cells were already inserted. "+
"Delete old cells now");
XColumnRowRange oColumnRowRange = (XColumnRowRange)
UnoRuntime.queryInterface(XColumnRowRange.class, oSheet);
XTableRows oRows = (XTableRows) oColumnRowRange.getRows();
oRows.removeByIndex(21,1);
}
CellRangeAddress sSrc = new CellRangeAddress(iSheet, 0, 21, 5, 21);
oObj.insertCells (sSrc, CellInsertMode.DOWN) ;