|
1 | 1 | # Excel - Export code to flat files |
| 2 | + |
2 | 3 | > Export every code objects (classes, forms, modules and worksheet code) to flat fliles, in a batch mode |
3 | 4 | |
4 | 5 | ## Table of Contents |
|
11 | 12 |
|
12 | 13 | ## Description |
13 | 14 |
|
14 | | -This VB script will export all code objects (classes, forms, modules and worksheet macro) from an Excel file (can be .xlsm or .xlam) to flat files on your disk. |
| 15 | +This VB script will export all code objects (classes, forms, modules and worksheet macro) from an Excel file (can be `.xlsm` or `.xlam`) to flat files on your disk. |
15 | 16 |
|
16 | | -This way, you'll get a quick backup of your code and you'll be able to synchronize your code on a versionning platform like GitHub. |
| 17 | +This way, you'll get a quick backup of your code and you'll be able to synchronize your code on a versioning platform like GitHub. |
17 | 18 |
|
18 | 19 | The script will start Excel (hidden way), open the specified file, process every code object and export them, one by one, in a `\src\your_file.xlsm` folder. |
19 | 20 |
|
20 | | -The `src` folder will be automatically created if needed and you'll find a subfolder having the same name of your file (so you can have more than one exported file in the same src folder). |
| 21 | +The `src` folder will be automatically created if needed and you'll find a sub-folder having the same name of your file (so you can have more than one exported file in the same src folder). |
21 | 22 |
|
22 | 23 | ## Install |
23 | 24 |
|
24 | | -Just get a copy of the .vbs script, perhaps the .cmd too (for your easiness) and save them in the same folder of your Excel application (containing the code you want to export). |
| 25 | +Just get a copy of the `.vbs` script, perhaps the `.cmd` too (for your easiness) and save them in the same folder of your Excel application (containing the code you want to export). |
25 | 26 |
|
26 | 27 | ## Usage |
27 | 28 |
|
28 | | -Just edit the .cmd file and you'll see how it works: you just need to run the .vbs with one parameter, the name of your file. |
| 29 | +Just edit the `.cmd` file and you'll see how it works: you just need to run the `.vbs` with one parameter, the name of your file. |
29 | 30 |
|
30 | 31 |  |
31 | 32 |
|
|
0 commit comments