c# - Reloading an Excel Addin Programmatically -


i have excel plug in has number of features. have button on ribbon titled "configuration settings" allows user select whether or not allow options (whether include right click menu, or display buttons on ribbon).

the way know define right click menu or design ribbon in start of excel addin.

i have config file gets checked on load, should user change configuration using ribbon button, has no effect until excel re-opened or user manually reloads addin. there way programmatically?

probably have 2 addins. (addin1, addin2)

first addin (addin1) doesnt have ribbons reads configuration , enables addin (addin2).

to enable addins use following piece of code.

foreach (comaddin addin in application.comaddins) {    if (addin.progid.tolower().contains("addin2") && addin.connect != true)    {       addin.connect = true;    } } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -