Save Excel Table to a JSON File with Simple VBA Macro

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 48

  • @mafnomekanix5442
    @mafnomekanix5442 Год назад

    I found this in 2023. Good job dude. I love this

  • @Pseudo___
    @Pseudo___ 3 года назад +4

    Okay but what if I got multiple arrays in multiple objects with properties sporadically throughtout,?

  • @michaelboggs438
    @michaelboggs438 Год назад

    Is it possible to modify this so that the only outputs are strings? I'm trying to get data to upload into Cosmos DB for Azure, and Azure really likes string data inputs.

  • @1982dhanu
    @1982dhanu Месяц назад

    Hi, Found this very useful
    But I get this Run time error '438' at line, I guess HeaderRowRange has to be used by a fixed length now.
    Are you planning to change your code ?.
    'For Each c In ActiveSheet.ListObject(1).HeaderRowRange.Cells'

  • @victorrichtmann3590
    @victorrichtmann3590 3 года назад +4

    The tutorial is very good. This worked well for me.
    But it doesn't work with a special character. Do you have any idea how to adjust as a special character?

  • @andrewcosgrove6447
    @andrewcosgrove6447 3 года назад +3

    I got a "run time error '9': subscript out of range" error on this line: "For Each c In ActiveSheet.ListObjects(1).HeaderRowRange.Cells" any idea why?

    • @na-ql3sm
      @na-ql3sm 3 года назад

      Did you ever figure this out? I am getting the same error.

    • @eToolGuy
      @eToolGuy 3 года назад +10

      @@na-ql3sm Your grid data needs to be defined as an Excel Table. Select the data you want to convert, then Go to then on the Ribbon and select a style.

  • @jmula1963
    @jmula1963 3 года назад

    is there a simple line of code I can add that allows the converter to skip a column if there is no value attatched in the table (ie. left blank) ?
    trying to format metadata for a large-scale NFT project (non-generative/where the art was done by hand) and we don’t need any extraneous properties as they literally should not exist if the piece of art does not call for it.

  • @deeperblue77
    @deeperblue77 Год назад +1

    Thanks! Exactly what I needed! 😃

  • @ameyavarma8568
    @ameyavarma8568 4 месяца назад

    Your a life saver! Thanks for doing my job for me:)

  • @patrickdanielmanalo3502
    @patrickdanielmanalo3502 Год назад

    I got a "Run time error '424' Object Required" on this line "Print #fileNumber, JsonCoverter.ConvertToJson(collectionToJson, Whitespace:=2)" any idea why?

  • @phaneeshanagraj9232
    @phaneeshanagraj9232 Год назад

    How to add data from multiple workbook and convert into JSON format

  • @archanaghodeswar8130
    @archanaghodeswar8130 Год назад +1

    Thanks. This code worked for me.

  • @ВладимирГригин-п9о
    @ВладимирГригин-п9о 2 года назад

    Hi! How to save JSON in format UTF-8? Tnx!

  • @secretstorymusic
    @secretstorymusic 2 года назад

    It would be great to know how to store individual lines as separate files as my log only allows single line files to be read.

    • @vidhijindal21
      @vidhijindal21 2 года назад +1

      Did you achieve that? I am looking for the same.

    • @secretstorymusic
      @secretstorymusic 2 года назад

      @@vidhijindal21 Not yet. I'm considering loading my data into SAS and automating a macro to save as different files. Will LYK if that works.

  • @jonusdarr2443
    @jonusdarr2443 2 года назад

    I'm a nub and I got this. Thanks a lot.

  • @MelissaPortales
    @MelissaPortales 2 года назад +2

    Great tutorial, thanks!

  • @mattkolberg2409
    @mattkolberg2409 6 месяцев назад +1

    This is really good. Just some constructive criticism. Speaking live, or narrating in a video, you want to avoid doing things that distract the listener. For you, it's taking a sip of whatever it is you're drinking. It happens very often. You'll be a better speaker if you avoid that.

    • @fortunesipay149
      @fortunesipay149 2 месяца назад

      I came to the comment to say the exact same thing.

  • @valkingelf
    @valkingelf Год назад

    Thank you, It helps me a lot!

  • @crocodilearms2093
    @crocodilearms2093 2 года назад +1

    How do you build a complex table and export to nested json?
    {"id":"0","attributes":[{"name":"one","value":"1"},{"name":"two","value":"2"}],"description":"The \"description\""}

  • @kanishksharma9828
    @kanishksharma9828 3 года назад

    My Button is not working, I can click it but it is not working! :(

    • @na-ql3sm
      @na-ql3sm 3 года назад

      did you figure it out?

    • @kanishksharma9828
      @kanishksharma9828 3 года назад

      @@na-ql3sm no not yet

    • @DepechLyot
      @DepechLyot 2 года назад

      it adds -- Private Sub CommandButton1_Click() extra End Sub need delete them

    • @sheheryarsarwar5140
      @sheheryarsarwar5140 2 года назад

      You need to check might be your design mode is on under development.

    • @DepechLyot
      @DepechLyot 2 года назад

      @@sheheryarsarwar5140 no, he said can click it.

  • @edderantonioparranaranjo4919
    @edderantonioparranaranjo4919 3 года назад

    It helped me a lot, thank you

    • @jakebrett3754
      @jakebrett3754 3 года назад

      Dont know if you guys gives a shit but if you're bored like me atm you can stream all the new series on instaflixxer. Been watching with my gf for the last weeks :)

    • @kadenmekhi4737
      @kadenmekhi4737 3 года назад

      @Jake Brett Yup, have been using instaflixxer for since december myself :)

  • @rogerdoger303
    @rogerdoger303 4 месяца назад

    Is that coffee you're drinking? 🙂

  • @alejandroarmagedon8095
    @alejandroarmagedon8095 Год назад

    help!! ERROR 424

  • @andyschrock2759
    @andyschrock2759 Год назад +4

    Your constant slurping is rather annoying.

    • @johankneijber
      @johankneijber Год назад

      Completely agree. Otherwise very good.

    • @paddy1813
      @paddy1813 Год назад

      I was surprised how often someone has to drink during a video recording...

  • @serhiirumiantsev7736
    @serhiirumiantsev7736 3 года назад

    Script is not working, it shows error

    • @na-ql3sm
      @na-ql3sm 3 года назад

      did you figure it out?

  • @mohamad.Khaled
    @mohamad.Khaled 6 месяцев назад

    thx