Am .10.2016, 17:32 Uhr, schrieb <
matthe...@gmail.com>:
> Hi Charlie - yeah, I'm guessing it's something to do with the original
> file I'm opening and re-saving in openpyxl, which is a pretty cluttered,
> complex, multi-sheet Excel file which is used as a template for a user
> form. It's very old and had lots of people hacking at it over the years
> and there are buried links to external data sources, hidden cells, named
> regions and all kinds in there - so I'm guessing adding more Data
> Validation is having an negative effect.
>
> One thing I noticed is that the xl/worksheets/sheet1.xml file containing
> data validation which is created by openpyxl contains the " escapes
> instead of quotation marks inside the the formula1 tag, where as testing
> shows that validation seems to be allowed in Excel if the formula string
> is surrounding in quotation marks (i.e. if the validation is created in
> Excel or Libreoffice Calc). I cannot figure out what is creating the
> HTML escapes - doesn't seem to be anything in your code.
validation and see if Excel is happier. You can simply put the data
Any escaping will be handled by the underlying XML libraries. I don't