+ Reply to Thread
Results 1 to 4 of 4

Copying data from a child Internet Explorer window after excel opened the parent win.

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Angry Copying data from a child Internet Explorer window after excel opened the parent win.

    Mornign all,
    I have already gotten some help with this code and I am close to having it to do exactly what I want.

    The macro I have opens Internet Explorer to a webpage clicks a button which opens a new page with all the data I need and then selects and copies all the data.

    The problem I have is when it clicks the submit button that data is opened in a new Internet Explorer window so the copy and paste feature copies the old page which is not the data I need. I need it to copy from the new page that opens.

    Please Login or Register  to view this content.
    Last edited by CJPHX; 07-09-2010 at 01:21 PM.

  2. #2
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: Selecting and copying all data from a webpage.

    I am able to get it to copy form the parent window, however I am still unable to get it to switch to the child window and copy.

  3. #3
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Copying data from a child Internet Explorer window after excel opened the parent

    Can't really help you because it's an intranet site, but my suggestion is to use IE WithEvents to trap the creation of the child window (via the NewWindow2 event), or loop through ShellWindows looking for the IE window which matches the .LocationURL or .LocationName of the child window.

  4. #4
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: Copying data from a child Internet Explorer window after excel opened the parent

    thanks Chippy I will look into those as I know nothing about them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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