From: "Peña, Botp" Date: 2008-10-29T14:05:28+09:00 Subject: Re: Open a MS Excel file from within Ruby From: RichardOnRails ... # Axel, I was able the get an Excel instance and # find it's methods. What I didn't find but think I # need it to access the content of a worksheet. pls read more on what Axel pointed out.. i just tried the ff now eg, and it works require 'win32ole' #=> false xl = WIN32OLE.new('Excel.Application') #=> # wb = xl.Workbooks.Open('/family/ruby/Book1.xls') #=> # worksheet = wb.Worksheets('Sheet1') #=> # worksheet.Range('a1')['Value'] #=> 1.0 worksheet.Range('a1:b4')['Value'] #=> [[1.0, "this"], [2.0, "is"], [3.0, "a"], [4.0, "test"]]