-
Notifications
You must be signed in to change notification settings - Fork 2
Updating Your Toolkit
Instructions to update your toolkit's project for a new release of this framework project.
-
Copy in framework files
Unpack the release's zip file or tarball, and then copy its source files (
*.bas
,*.cls
) into your toolkit's working directory. Your version control software should indicate which framework files have been changed or added in this release.Note: additional steps are required if the release contains core changes (described in the section below).
-
Verify the changes
Open the Development edition of your toolkit with its macros enabled. Confirm that the toolkit's menu and macros work as expected.
-
Commit the update
For example:
git commit -a -m "Update vba-libs to version 1.2.3"
Since core modules are always present in the Development edition of your Excel toolkit, they are NOT imported when that edition is opened with macros enabled. Therefore, if a new release of this add-in framework has revised source files for any of the core modules:
ThisWorkbook.cls
bootstrap.bas
you need to manually load the changes into your add-in.
First, prepare the toolkit for core modifications.
Open the VB editor's Immediate Window so you can view the progress of these steps.
In the upper right of the bootstrap
module's window, select the
LoadModuleForCoreUpdates
macro in the pull-down menu.
Run that macro, which will load the special update_core
module.
Double-click the update_core
module to open its window.
Locate the UpdateCoreModules
macro in its pull-down menu.
Run that macro, which will update each core mdoule by reading in its revised source code from its source file.
You need to unload the special module before you can save your add-in.
So close the update_core
window.
Then in the bootstrap
window, select the UnloadModuleForCoreUpdates
macro.
Run that macro, which will remove the update_core
module.
And finally, save your toolkit and restore the original name of its Development edition.