Browse Json VBA Object

Asked

Viewed 225 times

1

Good night, I’m having difficulty traversing the object to get the result of a API

Object to be covered

Erro Apresentadp

Sub AtualizarJogadores()

DoCmd.SetWarnings False
Dim Movie As Object
Dim R As Object
Dim scriptControl As Object

Set scriptControl = CreateObject("MSScriptControl.ScriptControl")
scriptControl.Language = "JScript"

With CreateObject("MSXML2.XMLHTTP")
    .Open "GET", "https://api.cartolafc.globo.com/clubes", False
    .send
    Set R = scriptControl.Eval("(" + .responsetext + ")")
    .abort

        For Each Movie In R





        Next Movie


       End With

End Sub

  • I’ve already managed to do something like this by example soen, where the variable JsonString, would be the .responsetext

  • 1

    Thanks buddy. It worked

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.