Import modules from files
xlide_import_modulesImport .bas and .cls files from a folder into an Office file's VBA project, previewing module changes before saving when apply=true.
Instructions
Reads .bas and .cls files from a folder back into an Office file's VBA project and saves it. Previews by default: it reports which modules would change and by how much, and writes nothing until apply=true. A file whose name matches no module creates one. Document modules such as ThisWorkbook are written but never created. Applying an unchanged plan skips the save. After a change, call xlide_analyze.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Write the modules. False previews the plan. | |
| file_path | Yes | Absolute path to the Office file. | |
| source_folder | Yes | Folder holding the .bas/.cls files. | |
| allow_protected | No | Permit saving a password-protected VBA project. Set true only after the user agrees. | |
| allow_invalidate_signature | No | Permit saving a change that removes the VBA project's digital signature, where applicable. Set true only after the user agrees. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||