The attribute plugin is not available, 2fa disabled

4.1 Fondamenti VBA

Accesso ai dati tramite codice VBA (Excel, Access, Word).

Richiesta HTTP

Function GetData(url As String) As String
    Dim http As Object
    Set http = CreateObject("MSXML2.XMLHTTP")
 
    http.Open "GET", url, False
    http.send
 
    GetData = http.responseText
End Function

Esempio di Chiamata

Sub TestGateway()
    Dim json As String
    json = GetData("http://localhost:5000/api/v1/dsn/demo/tables")
    Debug.Print json
End Sub

Parsing JSON

Per il parsing JSON consigliato: Libreria VBA-JSON

Dim data As Object
Set data = JsonConverter.ParseJson(json)
Zuletzt geändert: il 29/01/2026 alle 23:25