Public Function IsPicture(ByVal URL As String) As Boolean 'Content-Type法 Dim req As MSXML2.IServerXMLHTTPRequest Set req = New MSXML2.ServerXMLHTTP req.open "HEAD", URL, False req.send Dim contentType As String contentType = req.getResponseHeader("Content-Type") If contentType Like "image/*" Then IsPicture = True Else IsPicture = False End If End Function