Retrieving drive time miles

Daman2971985

New Member
Joined
Mar 1, 2011
Messages
1
Weird one for my first post on this forum but here goes!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
I have a friend who works as a travelling support worker (ie she drives to a number of different disabled people’s homes every day) come the end of the month she has to work out a mileage claim form…. She currently does this by sitting on google maps looking up the various driving miles between each appointment and manually inputting them into a spreadsheet. As you can imagine this is a very slow and tedious task to do each and every month!<o:p></o:p>
<o:p> </o:p>
What I would like to do is create a VBA program into which she can just type a long list of postcodes and the various driving miles just pop out at the end.<o:p></o:p>
<o:p> </o:p>
The VBA side of it I can handle, theres nothing complicated there (just a few loops and data collection) what I haven’t found a way of doing is getting the actual driving miles! I was hoping someone would have a suggestion?<o:p></o:p>
<o:p> </o:p>
I did wonder at trying to retrieve the distances directly from the web using the data import functions…. That would seem like the most sensible way, unfortunately the web addresses for the direction sites either don’t seem to directly contain the postcodes or the output data isn’t contained somewhere excel can retrieve it from! I just don’t know where to start!<o:p></o:p>
<o:p> </o:p>
Any good places to start/look would be brilliant! 3<SUP>rd</SUP> party software maybe?<o:p></o:p>
<o:p> </o:p>
Thanks in advance<o:p></o:p>
Luke
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Daman,
I'm pretty new to VBA but if you can't easily download mileages from google etc the alternative would be to build up a look up table. Lots of intial input but thereafter the VBa coding would be simple.

Did this some years back for a transport company client and it worked really well and fast.

Regards,

Alan
 
Upvote 0
I have actually created a spread sheet that will calculate Miles/Km's and give you costs, fuel mileage or L/100Km (personal preference). as well as maintenance costs, and distance traveled. i have also included a full budgeting field... and it is track-able for an entire Year... i have a 2011 sheet and 2012 sheet created. if your interested...

It also has a search built in to search for specific trips for reports...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top