开发者

Automating Excel macro using python

开发者 https://www.devze.com 2022-12-27 17:55 出处:网络
I am using python in Linux to automate an excel. I have finished writing data into excel by using pyexcelerator package.

I am using python in Linux to automate an excel. I have finished writing data into excel by using pyexcelerator package.

Now comes the real challenge. I have to add another tab to the existing sheet and that tab should contain the macro run in the first tab. All these things should be automated. I Googled a lot and found win32come to do a job in macro, but that was only for windows.

Anyone have any idea of how to do this, or can 开发者_开发知识库you guide me with few suggestions.


Excel Macros are per sheets, so, I am afraid, you need to copy the macros explicitly if you created new sheet, instead of copying existing sheet to new one.


You might find that Resolver One is better for what you want - it's a python-scriptable spreadsheet.


Maybe manipulating your .xls with Openoffice and pyUno is a better way. Way more powerful.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号