Is there a better way (besides COM) to remote-control Excel?

前端 未结 5 464
有刺的猬
有刺的猬 2021-01-07 08:55

I\'m working on a regression-testing tool that will validate a very large number of Excel spreadsheets. At the moment I control them via COM from a Python script using the l

5条回答
  •  天命终不由人
    2021-01-07 09:37

    Have you looked at the xlrd and xlwt packages? I'm not in need of them any more, but I had good success with xlrd on my last project. Last I knew, they couldn't process macros, but could do basic reading and writing of spreadsheets. Also, they're platform independent (the program I wrote was targetted to run on Linux)!

提交回复
热议问题