http://www.perlmonks.org?node_id=970106


in reply to Re^2: password protet excel sheet
in thread password protet excel sheet

For my copy of MS Excel 2010 (32-bit) on Windows 7 (64-bit), it works fine. Under this version, to unprotect it, click on "Review" and then click on "Unprotect worksheet". Then it prompts for a password.

Replies are listed 'Best First'.
Re^4: password protet excel sheet
by mangrove (Acolyte) on May 14, 2012 at 19:20 UTC
    <Thanks for help.>

      So is there any way in perl that I can password protect the excel file? I don't want to use the zip password protect either. So what I am trying to achieve is password protect a excel file that is created using Spreadsheet::WriteExcel. This code is written in unix platform but posted the file in windows.

        Not using Spreadsheet::WriteExcel. See the following clip from the POD for version 2.37:
        Excel's own workbook level password protection does provide strong encryption in Excel 97+. For technical reasons this will never be supported by Spreadsheet::WriteExcel.