Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.07 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.07 KB

Excel2JSON

VBA macros for exporting an excel sheet to Json format

Simple macros that will export a excel sheet like this:

image

to a json file called sheet_name.json with this structure:

image

By default, the file will be created in C:\Users\Usuario\Desktop. To change this, it has to be done inside the macros code:

image

  • In order to work, it is required to:
    • Have a first row with the column names
    • Have a second row with the data types:
      • 'str' for strings
      • 'num' for ints, floats and booleans
      • 'arr_str' for arrays of strings
      • 'arr_num' for arrays of ints, floats and booleans
    • Have the array data values separated by coma and without spaces (unless your strings intentionally have spaces)

By default, the macros is run using ctrl + E