Excel office API:从任务窗格调用函数

问题描述

我是开发 excel 加载项的新手,因此需要调用 excel 函数。我浏览了几个文档,但没有找到详细信息。

以下是我的示例代码:

async function run() {
  try {
    await Excel.run(async context => {
    // Code for invoking a excel function
    await context.sync();
});
} catch (error) {
console.error(error);
}
}

请提供有用的指南或让我知道如何从任务窗格调用自定义函数。

解决方法

我找到了帮助我解决问题的指南 office-js。感谢所有回复的人。

相关问答

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