How to set custom settings for worksheet using Exc

2019-07-25 12:42发布

I can set settings for whole workbook like here:

Office.context.document.settings.set("myKey", JSON.stringify(myValues));

Is there way to do the same but for specific worksheet ?

1条回答
forever°为你锁心
2楼-- · 2019-07-25 13:26

You should retrieve the Worksheet.id property and include it as part of each key you set.

(Worksheet names are also exposed to the API, but the user can change them, so id is recommended here.)

-Michael (PM for Office add-ins)

查看更多
登录 后发表回答