Rename module
xlide_rename_moduleRename a VBA module across its entire file, saving automatically, while preserving all procedure calls and excluding built-in document modules.
Instructions
Renames a VBA module everywhere its name is stored, and saves the file. Calls to the module's procedures elsewhere in the project are not rewritten; search for the old name first with xlide_search_modules. Document modules such as ThisWorkbook and Sheet1 cannot be renamed, because the host owns them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New name. A valid VBA identifier. | |
| file_path | Yes | Absolute path to the Office file. | |
| module_name | Yes | Module to rename. | |
| allow_protected | No | Ask the user first. | |
| allow_invalidate_signature | No | Ask the user first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||