Auto Fill Program needed to get maps from internet onto excel

T

Tricia

Ok, first let me tell you that this isn't something I
need so that I can register a thousand times to websites
or whatever that problem they have with auto-fill stuff..

What I am working on is a database of 123 computer
stores, and along with all the other store information -
we are talking a complete program for a regional manager-
I need to have MAPS and directions for each store. There
has to be a better way than doing all this manually. I
was asked to use MAPQUEST.com, but will use what works
best.

SO.. Does anyone know how I could make a formula that
would enable the user to click on a hyperlink I have on
each stores page that would bring them to mapquest (or
whatever), auto-fill in the starting point and the ending
point just by taking the info. from the cells which have
the addresses in them??

I hope SOMEONE can help! I am desperate here!!

Tricia
 
C

Chong Moua

Hi Tricia,

Try this... This will not get you what you want, but it'll
give you an idea. Below only shows a map of the
destination point from MapQuest. I'm sure you could use a
starting/ending point to get driving directions as well.
-----------------------------------------------
'MapQuest link will be placed on cell A1
'Enter street address on cell A2
'Enter city on cell A3
'Enter state on cell A4
'Enter zip code on cell A5

Sub MapQuest()

Range("A1").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, _
Address:="http://www.mapquest.com/maps/map.adp?
country=US&addtohistory=&address=" & [A2] & "&city=" &
[A3] & "&state=" & [A4] & "&zipcode=" & [A5]
& "&homesubmit=Get+Map" _
, TextToDisplay:="Get Map"

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top