Export modules to files
xlide_export_modulesExport all VBA modules from an Office file to .bas and .cls files for source control or review. Preview the plan first; set apply=true to write files.
Instructions
Writes every VBA module in an Office file to a folder as .bas and .cls files, for source control or review. Previews by default: it reports what it would create, update and leave alone, and writes nothing until apply=true. Only when the user asks for it. The exported files are copies: editing one changes nothing inside the Office file until xlide_import_modules runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Write the files. False previews the plan. | |
| file_path | Yes | Absolute path to the Office file. | |
| delete_stale | No | Delete .bas and .cls files in the folder that match no module. Ask the user first. | |
| export_folder | No | Folder to write into. Empty uses a folder named after the file, beside it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||