Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excelシートの読み書きに「roo」gemを使用しています。Rubyで「roo」gemを使用してExcelシートの各行の最後の列を取得するにはどうすればよいですか
これについて私にいくつかの提案をしてください...
次のことができます。
wb = Roo::Excelx.new 'somepath/somefile.xlsx' 1.upto(wb.last_row) do |row_index| last_column = wb.cell(row_index, wb.last_column) end
http://roo.rubyforge.org/
上記のリンクに記載されてforいる方法でa を使用できます。last_column
for
last_column