reading values from an excel spreadsheet

K

Krishna Vutukuru

does anybody know how to open a spreadsheet and read the values in the
cells and store them into an array using ruby?
 
L

Liang He

Krishna said:
does anybody know how to open a spreadsheet and read the values in the
cells and store them into an array using ruby?

xl=WIN32OLE.new('Excel.Application')
book = xl.Workbooks.Open('test.xls')
v=xl.Cells(1,1).value
xl.Cells(1,2).value=v
......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top