I'm working in VBA and creating Macros in Excel to send info to and from an IE browser window. I've been using AppActivate to focus on the certain IE page using it's title which has worked fine. Using SendKeys to send information back to the browser hasn't 100% gone that well so I've now started using...
Set ie = New InternetExplorer
ie.Navigate "http://url"
'Loop until ie page is fully loaded
Do Until ie.ReadyState = READYSTATE_COMPLETE
Loop
ie.Visible = True
followed by code to populate various fields on a web form.
This all works really well now except that it is currently set to open a new browser window. I've been trying to change the code so it finds the IE window I'm using similarly to AppActivate. But I can't find a way of combining the two. Can anyone help please? How do I change.....
Set ie = New InternetExplorer
to
Set ie = IE WINDOW WITH THIS TITLE.... or something similar?
Many thanks
Paul