'Loop through all the cells to get the size of a worksheet.
Do this only if it is explicitly requested.'

def _calculate_dimension(self):

    max_col = 0
    for r in self.rows:
        cell = r[(-1)]
        max_col = max(max_col, cell.column)
    self.max_row = cell.row
    self.max_column = max_col
