Perl module to write Excel binary files
Perl Perl6
Latest commit 3df3f58 Feb 4, 2015 @jmcnamara Merge pull request #8 from sgivan/master
Patch applied to fix undef return value.
Failed to load latest commit information.
docs Prep for release 2.38. Nov 22, 2012
examples Use safer *STDOUT due to OLE::Storage_Lite limitation. Fixes RT#64746. Nov 21, 2012
external_charts Prep for release 2.40. Nov 7, 2013
lib/Spreadsheet Patch applied as described here: Feb 3, 2015
t Prep for release 2.38. Nov 22, 2012
.gitignore Add local gitignore. Nov 21, 2012
Changes Prep for release 2.40. Nov 7, 2013
META.yml Prep for release 2.40. Nov 7, 2013
Makefile.PL Fix for non-numeric version comparison with some EU::MM versions. Jan 1, 2010
README Minor fix to installation instructions. Jan 1, 2014



    Spreadsheet::WriteExcel - Write formatted text and numbers to a
    cross-platform Excel binary file.


    The Spreadsheet::WriteExcel module can be used to create a cross-
    platform Excel binary file. Multiple worksheets can be added to a
    workbook and formatting can be applied to cells. Text, numbers,
    formulas, hyperlinks and images can be written to the cells.

    TThe Excel file produced by this module is compatible with 97,
    2000, 2002 and 2003.

    The module will work on the majority of Windows, UNIX and
    Macintosh platforms. Generated files are also compatible with the
    spreadsheet applications Gnumeric and

    This module cannot be used to read an Excel file. See
    Spreadsheet::ParseExcel or look at the main documentation for some
    suggestions. This module cannot be uses to write to an existing
    Excel file.


    To write a string, a formatted string, a number and a formula to
    the first worksheet in an Excel workbook called perl.xls:

        use Spreadsheet::WriteExcel;

        # Create a new Excel workbook
        my $workbook = Spreadsheet::WriteExcel->new("perl.xls");

        # Add a worksheet
        $worksheet = $workbook->add_worksheet();

        #  Add and define a format
        $format = $workbook->add_format(); # Add a format

        # Write a formatted and unformatted string.
        $col = $row = 0;
        $worksheet->write($row, $col, "Hi Excel!", $format);
        $worksheet->write(1,    $col, "Hi Excel!");

        # Write a number and a formula using A1 notation
        $worksheet->write('A3', 1.2345);
        $worksheet->write('A4', '=SIN(PI()/4)');


    This module requires Perl 5.005 (or later), Parse::RecDescent
    and File::Temp:


    Use the standard Unix style installation.

        Unzip and untar the module as follows:

            tar -zxvf Spreadsheet-WriteExcel-2.xx.tar.gz

        The module can be installed using the standard Perl procedure:

            perl Makefile.PL
            make test
            make install    # As sudo/root


    John McNamara (