如何从Windows上的自定义函数访问Excel API?

问题描述

我正在尝试以类似于here所述的方式在自定义函数中使用Excel API。

它在Mac版本的Excel和Web版本上都可以很好地运行,但是,在Windows版本上则不能运行。

在Windows上,当自定义函数尝试使用reference error Excel is not defined访问上下文时,我在调试日志中看到var context = new Excel.RequestContext();

如何在Windows上使用它?

解决方法

为了从Windows上的自定义函数调用Excel API,您需要配置外接程序以使用共享运行时。您可以参考tutorial

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...