온라인 누락, 나는 VBA/IE 검색 기능의 상호 작용을 자동화하기 위해 다음 코드를 완료 많은 사람들 참조 :VBA는 - 인터넷 자동화 - GetElementById.Value가
objIE.document.getElementById("id_here").Value = "Search This Text"
- 나는 오류가 나타납니다 "개체는 필수"실행하는 경우 이. 나는 또한 ObjIE.Document 후에 인텔리 센스를 잃는다.
나는 이것을 몇 시간 동안 조사했으며 어떤 도움을 주시면 감사하겠습니다. 여기 내 완전한 코드가 있습니다. 이 문제를 해결하는 데 필요한 추가 정보를 즉시 제공하겠습니다.
Sub InternetAutomation()
'Declaring and Setting Internet Explorer with Early Binding
Dim aExplorer As InternetExplorer
Set aExplorer = New InternetExplorer
'Set basic attributes of Internet Explorer and navigate to first webpage
With aExplorer
.Visible = True
.Navigate "www.google.com"
End With
'Wait while Internet Explorer is busy
Do While aExplorer.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
'Search Parameters
aExplorer.Document.getElementById("1st - ib").Value = "Search This Text"
End Sub
id 값은 "1st - ib"가 아닌 "lst-ib"입니다. –
고마워요! 여전히 같은 문제가 있습니다. 어떤 아이디어? – StevenB
저의 작품은 id 변경으로 –