// Merge the cells, keep the values in all cells...
crx1.mergeCells(CellRange.RETAIN_MERGED_CELLS);
// This time, remove the trailing Cells...
crx2.mergeCells(CellRange.REMOVE_MERGED_CELLS);
}catch(Exception e){
System.err.println("Error setting cell ranges " + e);
}
testWrite(book, "TestCellRanges.xls");