Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Accessing Mapquest info from Excel

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("To tal 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question About Accessing Web Info Using R1C1 The Moose Excel Worksheet Functions 0 December 27th 06 02:10 AM
Can i link Mapquest to my spreadsheet? Millenuimman3000 Excel Discussion (Misc queries) 0 November 14th 06 08:05 PM
Mapquest Web Query issue Steach91[_2_] Excel Programming 0 January 8th 06 12:40 AM
Can I link Mapquest to MS Excel or Outlook bigboy1 Excel Discussion (Misc queries) 0 July 18th 05 06:27 PM
LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info Duane S. Meyer Excel Programming 0 August 30th 03 12:16 AM


All times are GMT +1. The time now is 11:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"