Change the Add-in
You can’t rebuild the add-in while it is loaded in Excel, and you can’t unload the add-in if it is referenced from within Visual Basic. If you are creating the add-in from an .xls source file (as I recommend) you must take these steps before making changes:
Close any test workbook that contains code referencing the add-in. That removes the lock that prevents the add-in from unloading.
Deselect the add-in from the Add-Ins dialog box (Figure 22-3) to unload the file.
Open the .xls source file and make your changes.
Save the .xls file as an .xla file and then close it.
Reselect the add-in in the Add-Ins dialog box.
You don’t need to remove the references made in Visual Basic. Just closing those workbooks removes the lock. When you reopen those workbooks, the reference will be updated.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access