+ Reply to Thread
Results 1 to 5 of 5

Excel VB Mapquest

  1. #1
    Registered User
    Join Date
    05-27-2011
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Excel VB Mapquest

    Hello,

    I am very new to VB and excel. I am currently in a internship and am doing some distance calculations for shipping via road. I have a data set somewhere near 700 which if done by hand could be very time consuming. I have this current function that manages to open a instance of Internet explorer and calculate with Mapquest the driving distance between two points. The issue arises with pulling the distance from mapquest into its excel cell. I was wondering if anyone would take a look at it with me. I'm not sure where to go from here. Any help would be great. Thanks!
    Attached Files Attached Files
    Last edited by luths6; 06-08-2011 at 10:25 AM.

  2. #2
    Registered User
    Join Date
    05-27-2011
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel VB Mapquest

    Actually.. I thought I had it figured out, but it ended up not working. I think the main issue is that Mapquest changed up their page. The original code I was working with was created for a much older Mapquest.

    Please Login or Register  to view this content.
    Last edited by luths6; 05-31-2011 at 03:36 PM.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Excel VB Mapquest

    Hello luths6,

    Welcome to the Forum!

    It would help to see the original macro. Can you post it?

    To Attach a File:
    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    05-27-2011
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel VB Mapquest

    Thx. I posted an attachment.

  5. #5
    Registered User
    Join Date
    05-27-2011
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel VB Mapquest

    I solved the problem. Mapquest updated to a new page for driving directions. The html changed enough to throw off the function I was working with. This function will pull driving time and distance from mapquest into your excel file. I needed to change the url being accessed to the classic mapquest.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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