How to set custom settings for worksheet using Excel javascript API?

我是研究僧i 提交于 2019-12-11 05:00:02

问题


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:


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)



来源:https://stackoverflow.com/questions/37654909/how-to-set-custom-settings-for-worksheet-using-excel-javascript-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!