问题
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