Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit b70f9a8

Browse files
authored
Merge pull request #40 from spences10/dev
Merge Dev to Master
2 parents bd1e1ac + ae3085c commit b70f9a8

9 files changed

+687
-267
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*.{bas,cls,frm}]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = crlf
10+
11+
[CodeExport.config.json]
12+
indent_style = tab
13+
end_of_line = crlf

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
*.bas text eol=crlf
44
*.cls text eol=crlf
55
*.frm text eol=crlf
6+
CodeExport.config.json text eol=crlf

CodeExport.config.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
2+
"VBAProject Name": "CodeExport",
23
"Module Paths": {
4+
"clsConfiguration": "clsConfiguration.cls",
35
"clsVBECmdHandler": "clsVBECmdHandler.cls",
46
"JsonConverter": "JsonConverter.bas",
57
"modImportExport": "modImportExport.bas",
6-
"modMenu": "modMenu.bas"
8+
"modMenu": "modMenu.bas",
9+
"modUtil": "modUtil.bas"
710
},
811
"References": [
912
{

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,21 @@ The add-in will create a menu in the VBA IDE (the VBE) called `Export for VCS`.
2121

2222
### The configuration file
2323

24-
A file named `CodeExport.config.json` in the same directory as an Excel file declares what gets imported into that Excel file. The `Make Config File` button in the `Export For VCS` menu will generate a new configuration file for the current active project based upon the contents of that project. Any existing configuration file will be overwritten. The JSON file format is used as the file format for the configuration file.
24+
A file named `CodeExport.config.json` in the same directory as an Excel file declares what gets imported into that Excel file. The `Make Config File` button in the `Export For VCS` menu will create or update the configuration file for the current active project based upon the contents of that project. The JSON file format is used as the file format for the configuration file.
2525

26-
The `Module Paths` property specifies a mapping of VBA modules to their location in the file system. File paths may be either relative or absolute. Relatives paths are relative to the directory of the configuration file and the Excel file.
26+
The `Module Paths` property specifies a mapping of VBA modules to their location in the file system. File paths may be either relative or absolute. Relatives paths are relative to the directory of the configuration file and the Excel file. The `Base Path` property can be used to add a common prefix to all the file paths.
2727

2828
The `References` property declares the references to libraries that your VBA modules require. These will be imported when the import action is used and will be removed when the export action is used.
2929

30+
The `VBAProject Name` property declares the VBAProject name. This will be imported when the import action is used.
31+
3032
### Importing
3133

3234
The `Import` button in the `Export For VCS` menu will:
3335

3436
* Import all the modules specified in the configuration file from the file system into the Excel file. Existing modules will be overwritten.
3537
* Add all library references declared in the configuration file. Existing library references will be overwritten.
38+
* Set the VBAProject name as declared in the configuration file.
3639

3740

3841
### Exporting

0 commit comments

Comments
 (0)