I found this VBA code to check VAT number via Excel. But the link that they used in the code doesn't work anymore, and needs to be adjusted to this link http://ec.europa.eu/taxation_customs/vies/?locale=be
But if I change the link, I also need to change other elements. Unfortunately I am still a beginner with regards to coding. Does anyone know what I need to change in order to get the following?

The vba code is currently this:
Sub test()
Dim lrow As Long, data, obj As Object, i As Long, country, VATnum, webreply As String
lrow = Cells(Rows.Count, 1).End(xlUp).Row
If lrow = 1 Then Exit Sub
If Range("a1") <> "VAT" Then Exit Sub
data = Range("a1:d" & lrow)
Set obj = CreateObject("MSXML2.XMLHTTP")
For i = 2 To lrow
If Len(data(i, 1)) > 2 Then
country = Left(data(i, 1), 2)
VATnum = Right(data(i, 1), Len(data(i, 1)) - 2)
obj.Open "GET", "http://vatid.eu/check/" & country & "/" & VATnum & "/" & country & "/" & VATnum
obj.send
Do: DoEvents: Loop Until obj.ReadyState = 4
webreply = obj.responsetext
If InStr(webreply, "<error>") > 0 Then
data(i, 2) = False
Else
data(i, 2) = Split(Split(webreply, "<valid>")(1), "</valid>")(0)
data(i, 3) = Split(Split(webreply, "<name><![CDATA[")(1), "]]></name>")(0)
data(i, 4) = Split(Split(webreply, "<address><![CDATA[")(1), "]]></address>")(0)
End If
End If
Next
obj.abort
Range("a1:d" & lrow) = data
End Sub
Public Function VAT(rng As Range) As String
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", "http://vatid.eu/check/" & Left(rng, 2) & "/" & Right(rng, Len(rng) - 2)
.send
Do: DoEvents: Loop Until .ReadyState = 4
VAT = Split(Split(.responsetext, "<valid>")(1), "</valid>")(0)
.abort
End With
End Function

