+ Reply to Thread
Results 1 to 2 of 2

IE Application Object - control popup tab

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    97

    IE Application Object - control popup tab

    Hey guys,

    I'm navigating a webpage through the IE Application object.

    At one point, I have the code send a .Click command to a button that pops a window open in a new tab.

    I'm not sure how I can then go about controlling that new tab.

    I'd like to do it one of two ways (whichever is easier):

    1. Close the original tab, and "take control" of the 2nd tab so that further code sends commands to it.

    or

    2. Pull the URL of the 2nd tab once it fully loads, then close the 2nd tab and continue controlling the first tab.

    Any help is appreciated!

    Thanks!
    Matt

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: IE Application Object - control popup tab

    if the title property is always the same for the new window, then you can loop through them and set a second ie object as that tab. Here is a snippet from a program I have, which identifies a new window that pops up after I click a link, and whose title is "Purchase Order":

    Please Login or Register  to view this content.
    Last edited by Arkadi; 05-28-2018 at 07:59 AM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Popup Calendar Load Object
    By welshman010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2014, 03:39 AM
  2. Popup text for object
    By leem in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-03-2011, 04:20 PM
  3. Macro to click control object & add file as object
    By wayneknox in forum Excel General
    Replies: 0
    Last Post: 07-22-2009, 10:09 AM
  4. [SOLVED] New ActiveX Control popup
    By Robert Mulroney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2006, 06:45 PM
  5. [SOLVED] Excel Popup Menu Control
    By James in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2005, 05:45 AM
  6. positioning the control on a popup commandbar
    By MVM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2005, 03:05 PM
  7. Adding Button to Popup Control
    By trooper665 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1