Rename module
xlide_rename_moduleRename a VBA module in an Office file (not document modules like ThisWorkbook) and save changes. Procedure calls are not rewritten; search for the old name first.
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 | 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 | |||