how to control IE pop-up window

niftywonz

New Member
Joined
Feb 12, 2017
Messages
9
I'm Trying to get control of the IE pop-up window in my VBA excel project with no success. Could someone please explain to me how to do this, I have looked around the internet but have not found a solution. When I use the debug print command in the code it tells me the pop-up window address bar is false and assuming it should be true. This is the last leg of my project and I would be very grateful to anyone who could provide some feedback.

Option Explicit
Sub mainproject()
Dim IE As New SHDocVw.InternetExplorer
Dim HTMLdoc As MSHTML.IHTMLDocument


Dim shell As SHDocVw.ShellWindows


Set shell = New SHDocVw.ShellWindows



IE.Visible = True
IE.navigate "http://www.flashscore.com/basketball/usa/nba/"

Do While IE.readyState <> READYSTATE_COMPLETE
Application.Wait Now + TimeValue("00:00:01")
Loop
'Debug.Print IE.LocationName, IE.LocationURL

IE.document.getElementById("fs-summary-fixtures").Children(0).Children(2).Children(1).Children(2).Click

For Each IE In shell
If IE.LocationURL = "http://www.flashscore.com/match" Then
'Set IE =

Exit For
End If
Debug.Print IE.LocationName, IE.LocationURL, IE.AddressBar, IE.Application

Next
Set IE = Nothing
Set shell = Nothing

End Sub
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,851
Messages
6,127,307
Members
449,374
Latest member
analystvar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top