but when I try to run my program, it gave the outnput.
Does anybody know what this means?
Here is my code:
ex = WIN32OLE::new('excel.Application')
ex.visible = false
ex.workbooks.open('D:\Rubycode\Project\1.xls')
sheet = ex.worksheets('12.2.088').range('B7:Q86')
i = 1
sheet.each {|sheet|
if sheet.cells(i,1).value == "Auto"
puts "\n**********************"
p sheet.cells(i,0).text
p sheet.cells(i,1).text
p sheet.cells(i,10).text
p sheet.cells(i,15).text
i = i+1
end
}
Many thanks,
Milo
--
Posted via http://www.ruby-forum.com/.