in reply to Re^2: Spreadsheet::ParseExcel / WriteExcel question ....
in thread Spreadsheet::ParseExcel / WriteExcel question ....

Sorry, I don't download random files, especially spreadsheets -- Excel just doesn't have enough security.

poj++ is probably right: if you want to copy one spreadsheet to another, and then just change a couple of things, OLE is probably the way to go.

However, if you want to understand what you're missing, and what's going wrong:

But, really, based on your statement "I'm really only going to be changing some of the values of a cell, as well as font color and the fill color of the cell - that's all I'll ever need to change.", I really think you should just follow poj's advice.

Replies are listed 'Best First'.
Re^4: Spreadsheet::ParseExcel / WriteExcel question ....
by jhalbrook (Initiate) on Nov 29, 2017 at 21:36 UTC
    Thank you, pyrt, for the source code. Looking at the diffs, I think I'll just give Win32::OLE a shot, and see if I have quicker success.

    Thank you so much for the code, I've learned quite a bit from you!

    Joe
      Having all kinds of problems with Win32::OLE (mostly me, I'm a perl newbie). Would anyone have an example using Spreadsheet::ParseExcel and Spreadsheet::WriteExcel where they simply read in an existing spreadsheet and output a new spreadsheet identical to the original, but perhaps changing the font color and fill color of a few cells?

      Another way of asking, is how do I preserve all of the existing formatting of a cell and simply change one or more attributes such as a font color or fill color on some cells?