Hi,
Using XLRD and XLUtils:
Is it possible to open an excel file that contains graphs in sheet 1
and data in sheet2, and then modify sheet 2 and save it, without
losing the graphs in sheet 1?
> Hi, > Using XLRD and XLUtils: > Is it possible to open an excel file that contains graphs in sheet 1 > and data in sheet2, and then modify sheet 2 and save it, without > losing the graphs in sheet 1?
Sorry, no. As the README says, xlrd skips over charts.
> On 5/11/2009 2:00 AM, mconnors wrote:
> > Hi,
> > Using XLRD and XLUtils:
> > Is it possible to open an excel file that contains graphs in sheet 1
> > and data in sheet2, and then modify sheet 2 and save it, without
> > losing the graphs in sheet 1?
> Sorry, no. As the README says, xlrd skips over charts.
> Regards,
> John
-- Michael Connors
Burggravenlaan 148,
Leiden 2313 HZ,
The Netherlands
> > On 5/11/2009 2:00 AM, mconnors wrote:
> > > Hi,
> > > Using XLRD and XLUtils:
> > > Is it possible to open an excel file that contains graphs in sheet 1
> > > and data in sheet2, and then modify sheet 2 and save it, without
> > > losing the graphs in sheet 1?
> > Sorry, no. As the README says, xlrd skips over charts.
> > Regards,
> > John
> --
> Michael Connors
> Burggravenlaan 148,
> Leiden 2313 HZ,
> The Netherlands
I've uploaded a zipfile called excelByComExample.zip.
Contains 3 files
- python script
- Excel file containing graph (in xlsx format)
- csv file containing new data
depending on where you unzip it you will need to change the filenames
in the python script.
However when you run it should see
- Excel file opens on sheet with graphs
- Graphs change as the data is overwritten
- Excel closes once it is saved under new filename.
Any problems let me know.
Must warn you am not a software developer, just somebody who does some
hacking because I'm lazy :-)
Mike
On Nov 5, 10:16 am, Michael Connors <connor...@gmail.com> wrote: