I've been trying to figure out how to automate my access to a website that requires a popup login. The problem is that before you even reach the site a popup comes up for you to log in. This popup in the code the site still appears busy as it doesn't move forward until something is done with the popup, and it also prevents you from control the popup with your ie control.
Here is what I have so far:
Here is what I have so far:
Code:
Sub LoginSite()
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
' Go to login page
.Navigate "[URL="https://emkt.pjm.com/emkt/generatorMarketResults/generatorMarketResults.do?method=view"]https:website[/URL]"
' Loop until the page is fully loaded
' This is where I get a popup. Not sure what to do here
' in order to enter the username and password and
' click okay to get into the website.
Do Until .ReadyState = 4
DoEvents
Loop