Hello, please help
I'm trying to create macro which will pull data from site
I was using this code for others projects. However, It's not working with http://www.phila.gov/water/swmap/
I think the problem is in
Maybe I didn't choose right element, I don't know
Please help if you can
I'm trying to create macro which will pull data from site
I was using this code for others projects. However, It's not working with http://www.phila.gov/water/swmap/
I think the problem is in
Code:
Set Element = .document.getElementsByName("searchText")
Maybe I didn't choose right element, I don't know
Please help if you can
Code:
Sub Storm_Water()
Set objIE = CreateObject("InternetExplorer.Application")
WebSite = "http://www.phila.gov/water/swmap/"
With objIE
.Visible = True
.navigate WebSite
Do While .Busy Or .readyState <> 4
DoEvents
Loop
Set Element = .document.getElementsByName("searchText")
Element.Item(0).Value = "1725 Hoffman st"
.document.forms(0).submit
'.quit
End With
End Sub