Making text BLUR

sohan0174

New Member
Joined
Dec 5, 2015
Messages
7
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:

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 :)
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Why use the search box? You can go directly to the results via URL. With your example of population:
Code:
https://www.google.com/search?q=population

Replace any spaces in your search with +, for example population united states:

Code:
https://www.google.com/search?q=population+united+states
 
Last edited:
Upvote 0
Why use the search box? You can go directly to the results via URL. With your example of population:
Code:
https://www.google.com/search?q=population

Replace any spaces in your search with +, for example population united states:

Code:
https://www.google.com/search?q=population+united+states

Thank you, I know that, but I asked the question, to know that, is there any possible way to blur field, when text is being type. It could be any field, the motive is to hide the text from others while inputting it to IE
 
Upvote 0
I GOT THIS CODE FROM INTERNET
Code:
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; white-space: inherit;">[COLOR=#303336][FONT=inherit]document[/FONT][/COLOR][COLOR=#303336][FONT=inherit].[/FONT][/COLOR][COLOR=#303336][FONT=inherit]getElementById[/FONT][/COLOR][COLOR=#303336][FONT=inherit](*[/FONT][/COLOR][COLOR=#303336][FONT=inherit]element[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*).[/FONT][/COLOR][COLOR=#303336][FONT=inherit]fireEvent[/FONT][/COLOR][COLOR=#303336][FONT=inherit]([/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]"onblur"[/FONT][/COLOR][COLOR=#303336][FONT=inherit]);[/FONT][/COLOR]</code>

but I have no idea how to use this, any idea... ?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top