Create Office file or VBA project
xlide_create_projectCreate a new macro-enabled Office file with an empty VBA project at a given path, or add the missing project to an existing .docm or .accdb, without overwriting files.
Instructions
Creates a new Office file with an empty VBA project at the given absolute path, from a template the application itself authored, so it opens with no repair prompt. Extensions: .xlsm, .xlsb, .xlam, .docm, .pptm, .accdb, and .xlsx for a workbook with Power Query and no macros. It never overwrites a file or replaces a project that is already there. A .xlsm, .docm or .pptm saved before its first macro has no VBA project at all; xlide_write_module gives it one along with the first module. This tool also gives an existing .docm or .accdb with no project the empty one its application makes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to create, whose extension picks the format, or an existing .docm or .accdb with no VBA project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||