python中的excel加载项
有什么办法可以使用Python制作 Excel 附加/扩展?
我尝试过JavaScript,但在Python上添加插件尚未找到任何结果。
Is there any way I can make Excel add-ins/extensions using Python?
I have tried javascript but haven't found any result about making add-ins on python.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试Xloil(免责声明:我写了)。文档为在这里。要编写一个简单的三个输入函数,您将使用以下方式安装Xloil:
然后编写:
将此代码放置:
book1.py
(如果您的工作表为 在Python模块路径上的PY文件中调用book1.xlsx
)%appData%\ xloil \ xloil \ xloil.ini
按照文档中所述加载它。启动Excel,打开电子表格,该功能将以
myFunc
提供。You could try xlOil (disclaimer: I wrote it). The docs are here. To write a simple three input function, you would install xlOil using:
Then write:
Put this code either:
Book1.py
(if your sheet is calledBook1.xlsx
)%APPDATA%\xlOil\xlOil.ini
to load it as described in the docs.Start Excel, open your spreadsheet and the function will be available as
myfunc
.VSTO(或 OfficeJS)不为 Python 提供任何东西。 MS 没有开发 Python 框架。
您可能会发现像 PyXLL 这样的自定义扩展很有帮助。
VSTO (or OfficeJS) doesn't provide anything for Python. There is no framework for Python developed by MS.
You may find custom extensions like PyXLL helpful.