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

Version Path
writeexcel-1.0.4 examples/hide_sheet.rb
writeexcel-1.0.3 examples/hide_sheet.rb
writeexcel-1.0.2 examples/hide_sheet.rb
writeexcel-1.0.1 examples/hide_sheet.rb
writeexcel-1.0.0 examples/hide_sheet.rb
writeexcel-0.6.19 examples/hide_sheet.rb
writeexcel-0.6.18 examples/hide_sheet.rb
writeexcel-0.6.17 examples/hide_sheet.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.16/examples/hide_sheet.rb
writeexcel-0.6.16 examples/hide_sheet.rb
writeexcel-0.6.15 examples/hide_sheet.rb
writeexcel-0.6.14 examples/hide_sheet.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/hide_sheet.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/hide_sheet.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/hide_sheet.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/hide_sheet.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/hide_sheet.rb
writeexcel-0.6.13 examples/hide_sheet.rb
ricardoo27-writeexcel-0.6.12.2 examples/hide_sheet.rb
ricardoo27-writeexcel-0.6.12.1 examples/hide_sheet.rb