addRef(ref);
}
}
private void initAreaRef(int tRow, int lCol, int bRow, int rCol, Worksheet sheet, Worksheet lastSheet) {
final Book book = (Book) sheet.getWorkbook();
final int s1 = book.getSheetIndex(sheet);
final int s2 = book.getSheetIndex(lastSheet);
final int sb = Math.min(s1,s2);
final int se = Math.max(s1,s2);
for (int s = sb; s <= se; ++s) {
final Worksheet sht = book.getWorksheetAt(s);
final RefSheet refSht = BookHelper.getOrCreateRefBook(book).getOrCreateRefSheet(sht.getSheetName());
addRef(new AreaRefImpl(tRow, lCol, bRow, rCol, refSht));
}
}