require 'my_excel_lib' Excel.run(false) { |excel| book = excel.copy_book("test.xls") book.worksheets.each { |sheet| sheet.used_range.rows.each { |row| puts row.value.join(",") if row[1] row[1] = "test" end } book.save("test2.xls") } }