Skip to content

VBA macros for exporting an excel sheet to Json format

Notifications You must be signed in to change notification settings

Iakl/Excel2JSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

VBA macros for exporting an excel sheet to Json format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published