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 7428825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:52:11+00:00 2026-05-29T08:52:11+00:00

I have several (as in 100s) spreadsheets using an addin (let’s call it Addin2003).

  • 0

I have several (as in 100s) spreadsheets using an addin (let’s call it Addin2003). Due to a migration to new versions of Excel, I need some of those spreadsheets to use a new addin (let’s call it Addin2010).

Is there an easy way to check and change the references used by those spreadsheets without opening them.

So something like (pseudo code):

For each wbk in aListOfWorkbooks
  If wbk.containsReference("Addin2003") And someOtherCriteria Then
    wbk.removeReference("Addin2003")
    wbk.addReference("Addin2010")
  End If
Next

EDIT

To make it clearer, Excel 2003 and 2010 do not have the same addin loaded, so I want to change some spreadsheets that rely on the 2003 Addin and make them use the 2010 Addin instead. In other words, this would be equivalent to opening the workbook, opening the VBA editor, going to the Tools/References menu and changing the reference from Addin 2003 (which is flagged as MISSING) to Addin 2010.
If i do open one of those workbooks in Excel 2010 (which does not have the 2003 Addin), I get various errors due to the fact that Excel can’t find the 2003 Addin.
That’s why I thought it might be easier not to open the workbooks to change their References.

FINAL WORD

It seems that it is not possible to do that and I will have to physically open the files to change the references. Thank you all.

  • 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-29T08:52:11+00:00Added an answer on May 29, 2026 at 8:52 am

    You’ll probably want to do something similar to this:

    Sub ChangeAddins()
    
        Dim oAddin As AddIn
        Dim sFullNameOfAddin As String, sThisAddinName As String
    
        sFullNameOfAddin = ThisWorkbook.Path & "\" & "NewAddin.xlam"
        'Add in name of xla
        sThisAddinName = "Add-in Name"
    
        If Application.Version > 11 Then
            Set oAddin = AddIns.Add(sFullNameOfAddin, True)
            oAddin.Installed = True
            For Each oAddin In Application.AddIns
                If oAddin.Name = sThisAddinName Then
                    If oAddin.Installed Then
                        oAddin.Installed = False
                    End If
                End If
            Next oAddin
        End If
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have several .NET applications that monitor a directory for new files, using FileSystemWatcher.
I have several doctrine models that have relationships to other models. Let's call those
I have several user controls, let's say A , B , C and D
I have several tables, let's say for example: articles, thoughts and pages and I
I have several applications that I wish to deploy using rpm. Some of the
I have several ASP:TextBox controls on a form (about 20). When the form loads,
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I have several tables whose only unique data is a uniqueidentifier (a Guid) column.
We have several jobs that run concurrently that have to use the same config
I have several old 3.5in floppy disks that I would like to backup. My

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.