问题
Using Excel-2010, VS-2013,
I created an 'Office Add-In' that adds functionality to Excel. (The functionality, for example involves new Shortcut-Actions that color certain Excel-Cells.)
Everything is working perfectly - except that the functionality added is carried out on all open Excel-workbooks at once! This is not the intention. The intention is that this Add-In functionality only performs on the one Excel-workbook the user currently works with.
Is there any idea on how to achieve this ? (i.e. Add-In functionality limited to only the Excel-workbook currently worked at - not the other open ones too)
来源:https://stackoverflow.com/questions/41827715/office-add-in-for-excel-falsely-acts-on-every-open-workbook