// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); //Create a shape in worksheet, shape's range is Range["A7:B7"] IShape shape = worksheet.getShapes().addShape(AutoShapeType.Rectangle, 1, 1, 100, 100); //Range["A1:D10"] must contain Range["A7:B7"], copy a new shape to Range["C1:F7"] worksheet.getRange("A1:D10").copy(worksheet.getRange("E1")); worksheet.getRange("A1:D10").copy(worksheet.getRange("E1:I9")); //Cross sheet copy, copy a new shape to worksheet2's Range["C1:F7"] //IWorksheet worksheet2 = workbook.getWorksheets().add(); //worksheet.getRange("A1:D10").copy(worksheet2.getRange("E1")); //worksheet.getRange("A1:D10").copy(worksheet2.getRange("E1:I9")); // Save to an excel file workbook.save("ShapeCopy.xlsx");