TravelAddict has asked for the wisdom of the Perl Monks concerning the following question:
The problem that I have is that the original cells that I'm reading are all formatted and I want to preserve the exact same format in the resulting Excel file. Using a couple of loops, I check every cell of the source files and I write them into the new file:use Spreadsheet::XLSX; use Excel::Writer::XLSX;
Unfortunately, I'm only getting the data inside the cells (text only) and I'm losing the bold, font, colors, etc. Is there a way to read a cell and copy it "as is" without having to read and transfer all the formatting information? Thanks!my $cell_data = $cell -> {Val}; $worksheet->write($row, $col, "$cell_data");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moving Excel cells from one worksheet to another
by hdb (Monsignor) on Apr 30, 2013 at 13:56 UTC | |
by TravelAddict (Acolyte) on Apr 30, 2013 at 16:12 UTC |