Method: RubyExcel::Sheet#save_excel

Defined in:
lib/rubyexcel/sheet.rb

#save_excel(filename = nil, invisible = false) ⇒ WIN32OLE::Workbook

Save the RubyExcel::Sheet as an Excel Workbook

Parameters:

  • filename (String) (defaults to: nil)

    the filename to save as

  • invisible (Boolean) (defaults to: false)

    leave Excel invisible if creating a new instance

Returns:

  • (WIN32OLE::Workbook)

    the Workbook, saved as filename.



525
526
527
# File 'lib/rubyexcel/sheet.rb', line 525

def save_excel( filename = nil, invisible = false )      
  workbook.dup.clear_all.add( self.dup ).workbook.save_excel( filename, invisible )
end