// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); //Create shape IShape shape = worksheet.getShapes().addShape(AutoShapeType.Rectangle, 50, 50, 200, 200); //Duplicate shape IShape newShape = shape.duplicate(); // Save to an excel file workbook.save("ShapeDuplicate.xlsx");