+ Reply to Thread
Results 1 to 4 of 4

Getting Distances & Drive Times - Help Needed

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    4

    Getting Distances & Drive Times - Help Needed

    Hi, sorry to sound like a complete novice but I can not set up Excel to calculate Diatances / Drivetimes between 2 postcodes as per the thread:

    http://www.excelforum.com/showthread.php?t=808661

    (Been told i can not ask a question in another members thread and I need to start my own)

    I keep getting #VALUE! error message and I'm assuming I have not done one of the steps correctly.

    The steps I have done are:
    I have got an API code from https://www.bingmapsportal.com/Application Went to My Account > My Keys > Create New Key >

    I wasn't sure what application name to enter so called it GetDistance
    I wasn't sure what Application URL to enter so entered: http://dev.virtualearth.net/REST/V1/...ng?o=xml&wp.0= [COULD THIS BE WHATS WRONG?]
    I then got given a key
    I posted the code from page 1 of the above thread into MS Excel 2016 > VBA for Applications > Insert > Module and pasted the code into the Module 1(Code) box. I entered the key that was given to me within the bingKey = " "
    I then saved as Macro Workbook and entered the following into Cell A1 =getdistance(TN23DG,ME24NR) but I am getting the #VALUE! error

    I have also made Microsoft XML V6 available in the references section and tried with v3 too.

    I understand the Value error message can be caused by Bing getting too many queries from you but I've never had this working so not sure why i'm getting it.

    Any help would be greatly appreciated please.

    Thanks

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Getting Distances & Drive Times - Help Needed

    Deleted as the OP has another thread going.
    Last edited by Logit; 02-08-2017 at 08:33 PM.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Getting Distances & Drive Times - Help Needed

    Quote Originally Posted by fetster View Post
    ... (Been told i can not ask a question in another members thread and I need to start my own) ...
    As Kyle's thread is in the Tips and Tutorials forum, it would be acceptable that you ask your question within that thread, then Kyle is more likely to see it.

    Hope this helps.

    Pete

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Getting Distances & Drive Times - Help Needed

    I have responded in that thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 10-20-2016, 12:48 PM
  2. [SOLVED] Calculating times from the given distance and speed for specific distances
    By naga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2015, 10:09 AM
  3. Help needed - Macro to Upload multiple files from C drive to a Sharepoint
    By raghunaik in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-03-2015, 03:15 AM
  4. Help Needed: Macro to open a .pst(outlook mail) saved in hard drive
    By Elangovan89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2014, 09:12 AM
  5. [SOLVED] Need to bypass the drive letter (i.e C Drive) and use the drive name
    By AndyMan81 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-17-2013, 04:48 PM
  6. Excel VBA Distances and Drive Times
    By rufino1906 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2012, 08:01 PM
  7. Distances and Drive Times pt2
    By Kyle123 in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-30-2012, 04:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1