从Python调用VBA [英] calling VBA from Python

查看:552
本文介绍了从Python调用VBA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于操作excel工作簿工作表的VBA代码。

我想从Python运行这段代码。



我该怎么做?在Python for VBA 代码中是否有任何好的库。

请允许任何人为我提供一些很好的例子



谢谢!

解决方案

为什么,为什么这些VBA脚本?如果需要使用Python操作Excepl工作簿,请使用Python。整个站点都致力于使用Python控制Excel文档: http://www.python-excel.org [ ^ ]。



< DD> -SA

I have a VBA code for manipulating the sheets of the excel workbook.
I want to run this code from Python.

How can I do this? Are there any good libraries in Python for VBA code.
Please can anyone provide me some good examples to start with.

Thanks!

解决方案

Why, why those VBA scripts? If you need to manipulate Excepl workbooks with Python, use Python. There is a whole site dedicated to controlling Excel documents with Python: http://www.python-excel.org[^].

—SA


这篇关于从Python调用VBA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆