* @param sheet the {@link Worksheet} the Range will refer to.
* @param ref the AreaReference the Range will refer to.
* @return the associated {@link Range} of the specified {@link Worksheet} and area reference string (e.g. "A1:D4").
*/
public static Range range(Worksheet sheet, AreaReference ref) {
final CellReference c1 = ref.getFirstCell();
final CellReference c2 = ref.getLastCell();
final String sheetnm1 = c1.getSheetName();
final String sheetnm2 = c2.getSheetName();
final Book book = sheet.getBook();
final Worksheet sheet1 = sheetnm1 != null ? book.getWorksheet(sheetnm1) : sheet;
final Worksheet sheet2 = sheetnm2 != null ? book.getWorksheet(sheetnm2) : sheet;
final int tRow = c1.getRow();
final int lCol = c1.getCol();
final int bRow = c2.getRow();
final int rCol = c2.getCol();
return newRange(sheet1, sheet2, tRow, lCol, bRow, rCol);
}