jruby-win32ole icon indicating copy to clipboard operation
jruby-win32ole copied to clipboard

Value of a range consisting of several cells

Open Thomas008 opened this issue 6 years ago • 1 comments

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

Thomas008 avatar May 30 '19 21:05 Thomas008

I have published this issue in the jruby github already, since I did not know where the best place might be (issue 5755).

Thomas008 avatar May 31 '19 15:05 Thomas008