batch Geocode

Martynrbell

New Member
Joined
Apr 11, 2016
Messages
35
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
 
Last edited:

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,362
Office Version
2019, 2016, 2013
Platform
Windows
doogal has limits of the amount of data it will process for you
 

Martynrbell

New Member
Joined
Apr 11, 2016
Messages
35
Im only planning on doing approx 150 or so a day for approximately 30 days.
Would be nice to see how its done.

I managed to get https://www.latlong.net working, but there is also a daily quota for that but a lot smaller.

I did read in the comments on doogal that there isnt a quota as such, the users just get throttled when breached.
 

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,362
Office Version
2019, 2016, 2013
Platform
Windows
i would have thought ordnance survey would have the best data being that a postcode is a big beast
 

Watch MrExcel Video

Forum statistics

Threads
1,101,904
Messages
5,483,639
Members
407,400
Latest member
Rakeforms

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top