View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dennis Tucker Dennis Tucker is offline
external usenet poster
 
Posts: 140
Default Locking An IE Window As Active

Joel,

Oh man.......I hope this works. If it does I will owe you a beer or
something.

Thanks.

Dennis


"Joel" wrote in message
...
I went back to one of your older posting. The advise you got was wrong

doc.getElementById("txtInput").focus
or
doc.getElementsByName("txtInput")(1).focus


Don't use focus. Create a new variable for the objects

set txinput = doc.getElementById("txtInput")

Then use txinput as the reference to the object. Then you won't have to
worry about the focus.

"Dennis Tucker" wrote:

No. I'm using excel/vba to fill web forms. The problem is when the IE
window loses it's active status(by user clicking on another window, the
filling is redirected to the other window.

Dennis

"Joel" wrote in message
...
Is the real problem that an Internet explorer application launching a
new
internet explorer window as a child?

"Dennis Tucker" wrote:

Is there any way to Lock a particular internet explorer window as
active
during a code segment?

Dennis