Sha256: bdd64525d5c6787a0e831704d3e4ec27c77b72763f36a2afabf21eb8a7da8f1f
Contents?: true
Size: 767 Bytes
Versions: 33
Compression:
Stored size: 767 Bytes
Contents
#!/usr/bin/ruby -w # -*- coding: utf-8 -*- ####################################################################### # # Example of how to hide a worksheet with 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 = 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
33 entries across 33 versions & 3 rubygems