D Dennis Tucker Jul 19, 2009 #1 Is there any way to Lock a particular internet explorer window as active during a code segment? Dennis
Is there any way to Lock a particular internet explorer window as active during a code segment? Dennis
J Joel Jul 19, 2009 #2 Is the real problem that an Internet explorer application launching a new internet explorer window as a child?
Is the real problem that an Internet explorer application launching a new internet explorer window as a child?
D Dennis Tucker Jul 19, 2009 #3 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
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
J Joel Jul 19, 2009 #4 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.
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.
D Dennis Tucker Jul 19, 2009 #5 Joel, Oh man.......I hope this works. If it does I will owe you a beer or something. Thanks. Dennis
T Tim Williams Jul 20, 2009 #6 Joel, My advice was not wrong - it answered the question asked: how to give an element the focus, without using sendkeys. If the OP had mentioned they intended to use sendkeys to enter data I would have advised them not to. Tim
Joel, My advice was not wrong - it answered the question asked: how to give an element the focus, without using sendkeys. If the OP had mentioned they intended to use sendkeys to enter data I would have advised them not to. Tim