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 doDownload() Dim lngRet As Long Dim DownURL As String Dim SaveFile As String DownURL = "http://localhost/test.txt" SaveFile = "C:\test.txt" lngRet = URLDownloadToFile(0, DownURL, SaveFile, 0, 0) If lngRet = 0 Then MsgBox "OK" Else MsgBox "NG" End If End Sub
For inti = 0 To inti < wb.Document.Forms(frmCount).elements.Length Debug.Print wb.Document.Forms(frmCount).elements(inti).Name Next inti
wb.Document.Forms(frmCount).elements("radio")(0).Checked = True
WebBrowser1.Silent=True