List Add-In Manager dialog box and activate or desactivate (1 Viewer)

Superpat

Member
Local time
Today, 15:37
Joined
Aug 15, 2020
Messages
96
Hello,
I want to list Add-In Manager dialog box and know is some elements are activate.

Compléments.jpg

After, Activate and desactivate, here for VBA MZ-Tools .

Gestionnaire de compléments.jpg

Thanks to help
 

isladogs

MVP / VIP
Local time
Today, 14:37
Joined
Jan 14, 2017
Messages
18,227
Thanks Josef
That was very simple!
Do you also have similar code for Access and COM add-ins?
 

Josef P.

Well-known member
Local time
Today, 15:37
Joined
Feb 2, 2023
Messages
826
VBIDE require reference 'Microsoft Visual Basic for Application Extensibility"
=> Application.References.AddFromGuid "{0002E157-0000-0000-C000-000000000046}", 5, 3
Or you can use late binding:
Dim AddInRef As Object

Do you also have similar code for Access and COM add-ins?
It is almost the same for COM add-ins.
Code:
Dim ComAddIn As Office.ComAddIn

For Each ComAddIn In Access.COMAddIns
    With ComAddIn
        Debug.Print .ProgId, .Description, .Connect
        ' .Connect ... enabled/disabled in COM-add-in list (Access Options)
    End With
Next

I am not aware of any property for Access add-ins.
These are also never loaded at startup, but are only loaded on the 1st call. After that they are available as VBProject.
 
Last edited:

Superpat

Member
Local time
Today, 15:37
Joined
Aug 15, 2020
Messages
96
VBIDE require reference 'Microsoft Visual Basic for Application Extensibility"
=> Application.References.AddFromGuid "{0002E157-0000-0000-C000-000000000046}", 5, 3
Thanks, It work nice. I will try tomorrow next... and to change False in true
add-in.jpg
 

isladogs

MVP / VIP
Local time
Today, 14:37
Joined
Jan 14, 2017
Messages
18,227
Thanks for the COM add-ins code.

I had also searched unsuccessfully for code related to Access add-ins.
This lists all loaded projects including loaded add-ins

Code:
Sub ListLoadedProjectPaths()
    Dim proj
    For Each proj In VBE.VBProjects
        Debug.Print proj.FileName
    Next proj
End Sub

It doesn't include installed add-ins that aren't loaded.

To get a list of all Access add-ins, I currently search the registry path:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Access\Menu Add-Ins
 
Last edited:

Users who are viewing this thread

Top Bottom