Saturday, May 8, 2010

LocationURL Property

LocationURL Property Example

Do While loop is necessary otherwise msgbox will be blank

strLink= "http://www.google.com"
Set objIExplorer = CreateObject("internetexplorer.application")
objIExplorer.visible = True
objIExplorer.navigate strLink

Do While objIExplorer.Busy
WScript.Sleep 1000
Loop

surl=objIExplorer.LocationURL
msgbox surl




See all Methods & Properties of InternetExplorer Object here.