Method: WinExcel::ExcelFile#unprotect

Defined in:
lib/winexcel/excel_file/other_methods.rb

#unprotect(password = "zx") ⇒ Object



105
106
107
108
109
# File 'lib/winexcel/excel_file/other_methods.rb', line 105

def unprotect(password="zx")
  @workbook.Worksheets.each do |s|
    s.Unprotect(password)
  end
end