1
我是新來的VBA。 我正在創建vba登錄網站並獲取信息,但是當我嘗試登錄時請求驗證碼。我需要一個代碼來等待驗證碼輸入並提交表單。請幫助我。VBA等到輸入驗證碼提交表單
Sub iepart2()
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")
With ie
.Visible = True
.navigate "http://adb.in/ser/"
Do While .busy
DoEvents
Loop
Do While .readystate <> 4
DoEvents
Loop
Set txtUname = .document.getelementbyid("txtUname")
txtUname.Value = "Amarindaz"
Set txtEmail = .document.getelementbyid("txtEmail")
txtEmail.Value = "[email protected]"
Application.Wait Now + TimeValue("00:00:15")
.Quit
End With
End Sub