LoginSignup
0
0

More than 5 years have passed since last update.

RubyXLでシートの順番を変えたい

Posted at

概要

調べてもどこにも見つからなかったのでメモ。

案外普通にできた。

xl = RubyXL::Parser.parse('hoge.xlsx')
xl.worksheets = xl.worksheets.reverse
xl.write('hoge2.xlsx')

解説

workbookオブジェクトのworksheetsを並び替えすればいい。
シートの削除もできた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0