Hello everyone!
I've been working on this problem for couple of days now and am exhausted from Google'ing.
I am writing a screen scraper to grab temperature data from a NOAA website. I can automatically navigate thru all the pages using the webrowser methods and sometimes having to use the '.Click' to trigger buttons on some of the pages.
Here's the problem. When I do the final 'click' to get the temperature data, NOAA opens up a new explorer window that contains the raw ascii data.
How can I access the new window to scrape it? What object is it hiding in?
Here's some of the code I'm using: (I left out the busy and readystate stuff)
Set ie = CreateObject("internetexplorer.application")
ie.Visible = True
ie.Navigate "https://ols.nndc.noaa.gov/sub-login.html"
ie.Document.all.Item("userid").Value = "myname"
ie.Document.all.Item("password").Value = "mypassword"
ie.Document.all.Item("B1").Click
(some more code for other screens, more clicks and submits)
ie.Document.Forms(0).Elements.all(65).Click
The click on this screen popups a new window containing the ascii data.
How can I get to it? I tried playing with parentwindow some. Is this the path I should take?
Many thanks for any suggestions or hints!
Daniel K.
I've been working on this problem for couple of days now and am exhausted from Google'ing.
I am writing a screen scraper to grab temperature data from a NOAA website. I can automatically navigate thru all the pages using the webrowser methods and sometimes having to use the '.Click' to trigger buttons on some of the pages.
Here's the problem. When I do the final 'click' to get the temperature data, NOAA opens up a new explorer window that contains the raw ascii data.
How can I access the new window to scrape it? What object is it hiding in?
Here's some of the code I'm using: (I left out the busy and readystate stuff)
Set ie = CreateObject("internetexplorer.application")
ie.Visible = True
ie.Navigate "https://ols.nndc.noaa.gov/sub-login.html"
ie.Document.all.Item("userid").Value = "myname"
ie.Document.all.Item("password").Value = "mypassword"
ie.Document.all.Item("B1").Click
(some more code for other screens, more clicks and submits)
ie.Document.Forms(0).Elements.all(65).Click
The click on this screen popups a new window containing the ascii data.
How can I get to it? I tried playing with parentwindow some. Is this the path I should take?
Many thanks for any suggestions or hints!
Daniel K.