Sha256: cca59fef9ecb09b377542efc9a64db1c1acea640aa03bcf47f79a384cbcb972e
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 Bytes
Contents
#!/usr/bin/ruby -w ####################################################################### # # Example of how to hide a worksheet with Spreadsheet::WriteExcel. # # reverse('©'), April 2005, John McNamara, jmcnamara@cpan.org # # original written in Perl by John McNamara # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp # require 'rubygems' require 'WriteExcel' workbook = Spreadsheet::WriteExcel.new('hidden.xls') worksheet1 = workbook.add_worksheet worksheet2 = workbook.add_worksheet worksheet3 = workbook.add_worksheet # Sheet2 won't be visible until it is unhidden in Excel. worksheet2.hide worksheet1.write(0, 0, 'Sheet2 is hidden') worksheet2.write(0, 0, 'How did you find me?') worksheet3.write(0, 0, 'Sheet2 is hidden') workbook.close
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
WriteExcel-0.2.0 | examples/hidden.rb |