PC Review


Reply
Thread Tools Rate Thread

Accessing Mapquest info from Excel

 
 
Bruce
Guest
Posts: n/a
 
      28th Dec 2006
I need to have excel get driving directions from Mapquest and place them in
a cell.

Currently, what I am doing is to have the following in a cell (anyNum and
AnyStreet are actually my address num and street) and col F-I are
ClientsAddressNum, ClientsAddress2, ClientsCity and ClientsST
=IF(LEN(TRIM(G124))>0,"http://www.mapquest.com/directions/main.adp?go=1&do=nw&rmm=1&un=m&cl=EN&ct=NA&rsres=1&1ffi=&1l=&1g=&1pl=&1v=&1n=&2ffi=&2l=&2g=&2pl=&2v=&2n=&1pn=&1a=AnyNum+AnyStreet+Rd&1c=Castro+Valley&1s=ca&1z=&2pn=&2a="
& F124 & "+" & SUBSTITUTE(G124," ","+") & "&2c=" & SUBSTITUTE(H124," ","+")
& "&2s=" & I124 & "&2z=&r=f","")


This gives me a link that I can cut and paste (works pretty good)
Then I need to go to PRINTER FRIENDLY then cut the directions on that page,
come back to excel, and paste them in to a cell, the (wanting to keep
everything on one line ) change the format to wordwrap off (which it was
before)

I then get the travel time and miles into 2 different cells using
=IF(ISBLANK(BA124),"",VALUE(MID(BA124,SEARCH(" Total Est. Distance",BA124) +
21,SEARCH(" miles ",BA124) - (SEARCH(" Total Est. Distance",BA124) + 21))))
and
=IF(ISERROR(VALUE(MID(BA124,SEARCH("Total Est.
Time:",BA124)+16,SEARCH("Total Est. Distance:",BA124)-(SEARCH("Total Est.
Time:",BA124)+24)))),"",VALUE(MID(BA124,SEARCH("Total Est.
Time:",BA124)+16,SEARCH("Total Est. Distance:",BA124)-(SEARCH("Total Est.
Time:",BA124)+24))))

BA is the column I cut and paste the directions into

I am looking for a way that will automate the results a little more.

Thanks
Bruce




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing information from Mapquest DennisT Microsoft Access VBA Modules 1 14th May 2010 02:57 PM
Re: Accessing Outlook appointment info and exporting to Excel spreadsheet Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 0 20th Feb 2009 03:35 PM
Can I link Mapquest to MS Excel or Outlook =?Utf-8?B?YmlnYm95MQ==?= Microsoft Excel Misc 0 18th Jul 2005 06:27 PM
Re: LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info Nicholas Windows XP New Users 0 30th Aug 2003 09:33 PM
LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info Duane S. Meyer Microsoft Excel Programming 0 30th Aug 2003 12:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.