
My $workbook = Excel::Writer::XLSX->new( 'perl.xlsx' ) # Step 1 Like this: use Excel::Writer::XLSX # Step 0

Add a worksheet to the new workbook using add_worksheet(). So for those of you who prefer to assemble Ikea furniture first and then read the instructions, here are four easy steps:ġ. As a result there is a lot of documentation to accompany the interface and it can be difficult at first glance to see what it important and what is not. QUICK STARTĮxcel::Writer::XLSX tries to provide an interface to as many of Excel's features as possible. Excel::Writer::XLSX and Spreadsheet::WriteExcelĮxcel::Writer::XLSX uses the same interface as the Spreadsheet::WriteExcel module which produces an Excel file in binary XLS format. Text, numbers, and formulas can be written to the cells. Multiple worksheets can be added to a workbook and formatting can be applied to cells. The Excel::Writer::XLSX module can be used to create an Excel file in the 2007+ XLSX format. # Write a number and a formula using A1 notation $worksheet->write( 1, $col, 'Hi Excel!' ) $worksheet->write( $row, $col, 'Hi Excel!', $format ) # Write a formatted and unformatted string, row and column notation. My $workbook = Excel::Writer::XLSX->new( 'perl.xlsx' ) To write a string, a formatted string, a number and a formula to the first worksheet in an Excel workbook called perl.xlsx: use Excel::Writer::XLSX

write_string( $row, $column, $string, $format ).write_number( $row, $column, $number, $format ).write( $row, $column, $token, $format ).set_custom_color( $index, $red, $green, $blue ).Excel::Writer::XLSX and Spreadsheet::WriteExcel.
