Hi,
Hi Tinsa,
Thank you for contacting Aspose support.
You can opt to create a range of cells that you wish to copy to another Workbook/Worksheet, and create a similar range on the destination before calling the Range.copyValue method. Please have a look at the below provided code snippet as well as attached spreadsheet for your kind reference.
Java
Workbook input = new Workbook(myDir + “input.xls”);
input.calculateFormula();
Worksheet sheet = input.getWorksheets().get(0);
Cells cells = sheet.getCells();
Range inRange = cells.createRange(“A1”, “D9”);
Workbook output = new Workbook ();
sheet = output.getWorksheets().get(0);
cells = sheet.getCells();
Range outRange = cells.createRange(“A1”, “D9”);
outRange.copyValue(inRange);
output.save(myDir + “output.xls”, SaveFormat.EXCEL_97_TO_2003);
Hope this helps a bit.
Hi,
Fantastic!!!
Hi Tinsa,
Good to know that you are up and running again. Please feel free to write back in case you need our further assistance.