Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
sub cmmand1_click()‘例如网上为1.txt
R= URLDownloadToFile(0,"
http://www.abc.com/1.txt" , "c:\1.txt", 0, 0)
open “c:\1.txt" for input as #1
do until eof(1)
line input #1,a
text1=text1 & a & vbcrlf
loop
close
end sub