Method: RobustExcelOle::Worksheet#cellval

Defined in:
lib/robust_excel_ole/worksheet.rb

#cellval(x, y) ⇒ Object

value of a cell, if row and column are given



111
112
113
114
115
116
117
# File 'lib/robust_excel_ole/worksheet.rb', line 111

def cellval(x,y)
  begin
    @ole_worksheet.Cells.Item(x, y).Value
  rescue
    raise RangeNotEvaluatable, "cannot read cell (#{x.inspect},#{y.inspect})"
  end
end