Using Python to program MS Office macros?

前端 未结 6 725
走了就别回头了
走了就别回头了 2020-12-04 11:28

I\'ve recently taken it as a project to teach myself how to program in Python. Overall, I must say that I\'m impressed with it.

In the past I\'ve typically stuck to

6条回答
  •  臣服心动
    2020-12-04 12:00

    There is a set of cross platform Python utilities - called xlrd, xlwt, and xlutils - for reading & writing Excel files. There are some limitations (e.g. I don't think they can process macros), but they do allow you to work with Excel files on non-Windows platforms, if that's of use to you. See: http://www.python-excel.org/

    Also, there are SO questions already dealing with this sort of topic, including this: Is there a better way (besides COM) to remote-control Excel?

提交回复
热议问题