用Inet控件先把文件下在到本地,然后随便你怎么弄它都可以Private Function downloadOneFile(Inet_Dowload As Inet, fileURL As String, localFile As String) Dim fileNum As Integer 'download Dim b() As Byte fileNum = FreeFile b() = Inet_Dowload.OpenURL(fileURL, icByteArray) On Error Resume Next Open localFile For Binary Access Write As #fileNum Put #fileNum, , b() Close #fileNum End Function
Dim fileNum As Integer
'download
Dim b() As Byte
fileNum = FreeFile
b() = Inet_Dowload.OpenURL(fileURL, icByteArray)
On Error Resume Next
Open localFile For Binary Access Write As #fileNum
Put #fileNum, , b()
Close #fileNum
End Function