如何使用Office.js更改Excel StatusBar消息?

问题描述 投票:1回答:1

我试图找出如何使用office.js Excel加载项更改excel中的状态消息。我不认为这会太难,但似乎无法找到它。

excel ms-office office-js
1个回答
0
投票

无法使用Office.js以编程方式完成此操作。一个可能的替代方案是在加载项本身上弹出一个toast。我们有一个你可以使用的辅助函数,看起来像:

async function run() {
    await Excel.run(async (context) => {

        OfficeHelpers.UI.notify("Whatever text you need");

        await context.sync();
    });
}

还请在我们的https://officespdev.uservoice.com/上投票/创建新请求

© www.soinside.com 2019 - 2024. All rights reserved.