I am using Apache POI XSSF to read and write Excel Sheets.
I know that I can set the active cell on a worksheet by using Sheet.setActiveCell(CellAddress address)
.
However, I'd like to set it to a Range containing more than one cell on the sheet, as illustrated by the picture below:
When I save a sheet with multiple cells selected using Excel those are selected upon opening the saved file. Is there a way to do this with POI XSSF?