PDA

View Full Version : How to switch to the newly created Internet Explore document



clif
05-16-2017, 06:21 PM
I have a series of macros that I run on a Internet Explore document and final procedure is click the link automally and
redirect to another webpage. I intend to run second series of macros on this new Internet Explore document.

I don't know how to switch to the newly created Internet Explore document and contunue second series of macros.

Thanks!

werafa
05-22-2017, 02:55 PM
Hi Clif,

can you set the IE doc as an object? if so, can you do something like:

with newDoc
call ......
end with

the logic is, you are working from the parent application, and all calls must be made from that location, with the path to a remote object being specified

werafa
05-22-2017, 03:24 PM
so you don't 'switch' to the new doc, you send the macro to it