The Value method of a range containing multiple cells causes an ArrayIndexOutOfBoundsException.
For example:
excel = WIN32OLE.new("Excel.Application")
workbook = excel.Workbooks.Open(File.expand_path("workbook.xls")
worksheet = workbook.Worksheets.Item(1)
range = worksheet.Range(worksheet.Cells(1,1), worksheet.Cells(3,4))
range.Value
=> ArrayIndexOutOfBoundsException
The Value method of a range containing multiple cells causes an ArrayIndexOutOfBoundsException.
For example:
excel = WIN32OLE.new("Excel.Application")
workbook = excel.Workbooks.Open(File.expand_path("workbook.xls")
worksheet = workbook.Worksheets.Item(1)
range = worksheet.Range(worksheet.Cells(1,1), worksheet.Cells(3,4))
range.Value
=> ArrayIndexOutOfBoundsException