I am working on a project, where I am automating IE. Where IE is accessing "www.google.com", and typing "population" and clicking on "google search" button.
Desire: I don't want to show what I am entering to the search box. Or I want the text, "population", to be blur or hidden, so that while entering the text no one can see what is being type.
MY CODE:
So I want this field to be blur getelementbyid("lst-ib")
so that whatever is being entered can't be seen by guest or others. Note: It is essential to remain IE visible true.
THANK YOU
Desire: I don't want to show what I am entering to the search box. Or I want the text, "population", to be blur or hidden, so that while entering the text no one can see what is being type.
MY CODE:
Code:
Sub iepart2()
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")
With ie
.Visible = TRUE
.navigate "https://www.google.com/?hl=en"
Do While .busy
DoEvents
Loop
Do While .readystate <> 4
DoEvents
Loop
Set searchtxt = .document.getelementbyid("lst-ib")
searchtxt.Value = "population"
.document.forms(0).submit
Do While .busy
DoEvents
Loop
Do While .readystate <> 4
DoEvents
Loop
Set searchres = .document.getelementbyid("resultStats")
ThisWorkbook.Sheets(1).Range("A1") = searchres.innertext
'.Quit
End With
End Sub
So I want this field to be blur getelementbyid("lst-ib")
so that whatever is being entered can't be seen by guest or others. Note: It is essential to remain IE visible true.
THANK YOU