Public Function GetHTTPPicture(ByVal sUrl As String, ByRef ctl As Control)
Dim byteData() As Byte
Dim XMLHTTP As Object
Set XMLHTTP = CreateObject("MSXML2.XMLHTTP")
XMLHTTP.Open "GET", sUrl, False
XMLHTTP.send
byteData = XMLHTTP.responseBody
Set XMLHTTP = Nothing
sUrl = Environ("Temp") & "\" & Mid(sUrl, InStrRev(sUrl, "/") + 1)
Open Environ("Temp") & "\" & sUrl For Binary Access Write As #1
Put #1, , byteData
Close #1
ctl.Picture = sUrl
Kill sUrl
End Function