Sha256: 57e1fd2228925c3f9ac40902b91350116d624bbfb88a8bec2f9e5c2294f763ac
Contents?: true
Size: 820 Bytes
Versions: 21
Compression:
Stored size: 820 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- ####################################################################### # # Example of how to hide a worksheet with Excel::Writer::XLSX. # # reverse('c'), April 2005, John McNamara, jmcnamara@cpan.org # convert to ruby by Hideo, Nakamura, nakamura.hideo@gmail.com # require 'write_xlsx' workbook = WriteXLSX.new('hide_sheet.xlsx') worksheet1 = workbook.add_worksheet worksheet2 = workbook.add_worksheet worksheet3 = workbook.add_worksheet worksheet1.set_column('A:A', 30) worksheet2.set_column('A:A', 30) worksheet3.set_column('A:A', 30) # Sheet2 won't be visible until it is unhidden in Excel. worksheet2.hide worksheet1.write(0, 0, 'Sheet2 is hidden') worksheet2.write(0, 0, "Now it's my turn to find you.") worksheet3.write(0, 0, 'Sheet2 is hidden') workbook.close
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
write_xlsx-1.01.0 | examples/hide_sheet.rb |