Write Excel Cell Comment using Python on Linux?
I am using Python
in a Linux (Ubuntu) environment.
How do I go about writing a comment into a cell in an Excel
file (say,MyFile.xls
)?
I know that it is possible to write values. Yet, how do I go about writing a 开发者_C百科comment?
On Windows (with Excel installed) you could use COM from Python: this class wraps it nicely for you.
But on Linux, you'll need to use xlwt.
I'm looking into this myself and found https://bitbucket.org/ericgazoni/openpyxl/wiki/Home . It is a new library that allows editing xlsx files. I'm not sure if it allows editing comments though.
精彩评论