excel vba - Check if an Add-in is installed and running VBA -
i trying check if add-in installed , running. using piece of code:
on error resume next: set solvernome1 = addins("solver add-in") 'solver may have 2 different names set solvernome2 = addins("solver") msgbox isempty(solvernome1) msgbox isempty(solvernome2) if isempty(solvernome1) , isempty(solvernome2) msgbox "install solver add-in before trying install add-in.", vbexclamation application.myaddinname.installed = false 'uninstall add-in end if
the problem solver uninstalled still isempty(solvernome1) = false condition clause doesn't work desired. guess there misunderstanding concept of installed or not. piece of code should using check if solver running?
answering on question: necessary access .installed property this:
myboolean1 = solvernome1.installed 'will return false because add-in set , not installed myboolean2 = solvernome1.installed 'won't return because add-in not set
Comments
Post a Comment