Transfer values between Excel buttons

こ雲淡風輕ζ 提交于 2019-12-11 06:15:37

问题


Is there a way to transfer values between two Excel buttons in Excel ribbon. e.g. click of button1 - save a value say x click of button2 - retrieve the same value x

Note : I don't want to use local storage.

Session storage & document storage do not seem to work.


回答1:


Assuming you are using add-in commands, and a single "functions.js" file to drive the actions, I don't see why you couldn't store a global variable (or some localized version thereof) within functions.js to keep and pass around the values.



来源:https://stackoverflow.com/questions/43771951/transfer-values-between-excel-buttons

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