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?

enter image description here

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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -