VBA ve Internet Explorer kullanarak bir web sitesinde oturum açmak için çalışıyorum. Bu bir Run TIme hatası 424 "Object Required" neden oluyor.Çalışma zamanı hatası 424 Nesne gerekli - VBA + Internet Explorer = Web Giriş
İşte kodum. Uzman tavsiyelerinizi arıyorum.
Sub Website()
Dim IE As Object, Doc As Object, UserName As Object, Password As Object, strCode As String
Set IE = New InternetExplorerMedium
IE.Visible = True
IE.Navigate "http://appln.ABC.com/index.epl"
Do While IE.ReadyState <> 4: DoEvents: Loop
Set Doc = IE.Document
Set UserName = Doc.getElementById("login_usr")
UserName.Value = "ABCDE"
Set Password = Doc.getElementById("login_password")
Password.Value = "ABCDE"
Set btnLogin = Doc.getElementById("Login")
btnLogin.Click
End Sub
Hata hangi hat üzerinde? –
Merhaba Tim, "Set Doc = IE.Document" öğesinden sonra hata görüntüleniyor – Stratos7