I'm having issues with executing the following task:
I want to execute a click-loop that goes through the entire webpage searching for "Delete buttons". Using GetElementByID
gives me a RUn Time Error 424 Object Required
Error.
This is where I'm getting stuck at. Appreciate your help!!!
Here is the code I'm using:
Sub Website()
Dim IE As Object, Doc As Object, UserName As Object, Password As Object, strCode As String
Set IE = CreateObject("InternetExplorer.Application")
Set IE = New InternetExplorerMedium
IE.Visible = True
' IE open webpage page
IE.Navigate "http://abc.com.au"
Do While IE.ReadyState <> 4: DoEvents: Loop
End Sub
答案 0 :(得分:0)
你使用IE.Document.GetELementByID ???
之间必须有一个文件。
如果找不到元素,你应该处理错误。