Martynrbell
New Member
- Joined
- Apr 11, 2016
- Messages
- 38
- Office Version
- 365
- Platform
- Windows
Hi all,
im attempting to use the website
https://www.doogal.co.uk/BatchGeocoding.php
to take a list of postcodes in column A and either take the results straight from the website and paste into B and C.
Or download the csv File and import into the correct columns.
Sub geoCode()
Dim IE As Object
Dim doc As HTMLDocument
Dim objTag As Object
Lastrow = ThisWorkbook.Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "https://www.doogal.co.uk/BatchGeocoding.php"
IE.navigate URL
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.document
doc.getElementById("tabs").Click
For RowNo = 2 To Lastrow
doc.getElementById("postcodes").Value = ThisWorkbook.Worksheets("sheet1").Range("A" & RowNo)
Next
End Sub
This is as far as i can get before i run in to issues.
I cant seem to figure out how to control the rest of the website.
Any help would be appreciated.
Thanks in advance
im attempting to use the website
https://www.doogal.co.uk/BatchGeocoding.php
to take a list of postcodes in column A and either take the results straight from the website and paste into B and C.
Or download the csv File and import into the correct columns.
Sub geoCode()
Dim IE As Object
Dim doc As HTMLDocument
Dim objTag As Object
Lastrow = ThisWorkbook.Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "https://www.doogal.co.uk/BatchGeocoding.php"
IE.navigate URL
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.document
doc.getElementById("tabs").Click
For RowNo = 2 To Lastrow
doc.getElementById("postcodes").Value = ThisWorkbook.Worksheets("sheet1").Range("A" & RowNo)
Next
End Sub
This is as far as i can get before i run in to issues.
I cant seem to figure out how to control the rest of the website.
Any help would be appreciated.
Thanks in advance
Last edited: