def hide
    @hidden = true

    # A hidden worksheet shouldn't be active or selected.
    @selected  = false
    @workbook.worksheets.activesheet = @workbook.worksheets.first
    @workbook.worksheets.firstsheet  = @workbook.worksheets.first
  end
def hide
    @hidden = true

    # A hidden worksheet shouldn't be active or selected.
    @selected  = false
    @workbook.worksheets.activesheet = @workbook.worksheets.first
    @workbook.worksheets.firstsheet  = @workbook.worksheets.first
  end
Hide this worksheet.

 The hide() method is used to hide a worksheet:

     worksheet2.hide

 You may wish to hide a worksheet in order to avoid confusing a user with
 intermediate data or calculations.

 A hidden worksheet can not be activated or selected so this method is
 mutually exclusive with the activate() and select() methods. In addition,
 since the first worksheet will default to being the active worksheet,
 you cannot hide the first worksheet without activating another sheet:

     worksheet2.activate
     worksheet1.hide