Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:06:47+00:00 2026-05-26T12:06:47+00:00

I have a VB6/VBA application that hooks into Excel and loads a workbook. It

  • 0

I have a VB6/VBA application that hooks into Excel and loads a workbook. It has been working great for many years. We have now upgraded to Excel 2010 and have ran into some issues. After troubleshooting it seems that if i turn off the PowerPivot COM Add-In the process is able to run as it did before with no issues. While I look for the exact cause of this i wanted to see if i can turn off that Add-In just for my app. I load up Excel like this:

 Set xlApp = CreateObject("Excel.Application")
 xlApp.Visible = False

On a test Excel workbook I have this code to list the add-ins. However only “Excel Add-Ins” are the only ones that get listed. “COM Add-Ins” do not get listed.

Sub ListAddIns()
  Dim CurrAddin As Excel.AddIn
  Dim r As Long
  Dim ws As Excel.Worksheet

  Set ws = ActiveSheet
  Cells.Select
  Selection.ClearContents
  Range("A1").Select

  r = 1
  For Each CurrAddin In Excel.Application.AddIns
      ws.Cells(r, 1).Value = CurrAddin.FullName
      ws.Cells(r, 2).Value = CurrAddin.Installed
      ws.Cells(r, 3).Value = CurrAddin.Name
      ws.Cells(r, 4).Value = CurrAddin.Path
      ws.Cells(r, 5).Value = CurrAddin.progID
      ws.Cells(r, 6).Value = CurrAddin.CLSID

      r = r + 1
  Next CurrAddin

  MsgBox "Its done.", vbInformation
End Sub

After I find a way to reference the COM Add-In I need to keep it from loading in the Excel object in my app. Any help or suggestions welcome.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:06:48+00:00Added an answer on May 26, 2026 at 12:06 pm

    I don’t know if there is a “pretty” way to achieve this, but a “dirty” way would be to change the registry settings for the add-in before you start Excel so it won’t be loaded.
    This can be done by setting HKCU\Software\Microsoft\Office\Excel\AddIns\\LoadBehavior to 0 (don’t load automatically).
    However, this is something you probably shouldn’t do unless you are sure that the user accepts it, so be sure to ask the user if he agrees to this change.

    You were very close with your code, the way to go is something like this:

    Sub ListAddIns()
        Dim CurrAddin As **Office.COMAddIn**
        Dim r As Long
        Dim ws As Excel.Worksheet
    
        Set ws = ActiveSheet
        Cells.Select
        Selection.ClearContents
        Range("A1").Select
    
        r = 1
        For Each CurrAddin In **Excel.Application.COMAddIns**
            ws.Cells(r, 1).Value = CurrAddin.Description
            ws.Cells(r, 2).Value = CurrAddin.Application
            ws.Cells(r, 3).Value = CurrAddin.GUID
            ws.Cells(r, 4).Value = CurrAddin.Connect
            ws.Cells(r, 5).Value = CurrAddin.Creator
            ws.Cells(r, 6).Value = CurrAddin.progID
            r = r + 1
        Next CurrAddin
        MsgBox "Its done.", vbInformation
    End Sub
    

    You can use the Connect property to load and unload a COM addin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a VB6 application running at a customer that has a bug in
I have a VB6 application that needs to update it's self. For this purpose,
I have a VB6 application that I am converting to .Net in phases. The
I have a VB6 ActiveX DLL that has run fine on all our machines
I have a VB6 application that still references some old VB5 libraries (dll, vbr,
I have a VB6 app that loads initially (for a small prompt to enter
I have VB6 application that uses Navigate2 method of WebBrowser control. .Net version of
I have a VB6 application that works fine on most Windows 7 machines (even
I have an old VB6 service that works on a number of Excel files.
I have a VB6 application that needs to be installed on Windows Vista as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.