excel - 如何从 Windows 上的自定义函数访问 Excel API?
问题描述
我正在尝试以类似于此处描述的方式在我的自定义函数中使用 Excel API 。
它在 Excel 的 Mac 版本和 Web 版本上运行良好,但在 Windows 版本上不起作用。
在 Windows 上,reference error Excel is not defined
当自定义函数尝试使用var context = new Excel.RequestContext();
.
我怎样才能让它在 Windows 上工作?
解决方案
为了从 Windows 上的自定义函数调用 Excel API,您需要将加载项配置为使用共享运行时。你可以参考教程。
推荐阅读
- python - 当键乱序时比较字典列表
- r - 有效地将增长率应用于多年来不同增长率的初始值
- java - 这个 Java 字符串数组声明有什么问题 - 非常奇怪
- html - 使用 exec master..xp_cmdshell 写入 .html 文件
- python - Facebook刮板'NoneType'对象在get_post时没有属性'find'
- c++ - 系统调用是线程安全的吗?
- javascript - iTunes Search Api 的问题 - 未捕获(承诺) SyntaxError:输入意外结束
- mysql - 无法创建 varchar(65535) 但无法创建 varchar(65536),为什么?
- dart - 解释 Dart Mixin 声明
- django - 如何只允许登录用户连接到 Django Channels 中的 websocket?