function s = size(h)

if ~isempty(h.EndRow) && ~isempty(h.StartRow) && h.EndRow>0 && h.StartRow>0
    s =  [h.EndRow-h.StartRow+1 length(h.ColumnNumbers)];
else
    error('Excel data source has an invalid size')
end