Getting Internet Data Into The Listbox or Table

L

Legacy 389185

Guest
Hey, so I wrote a code for getting into the google maps site after typing 2 countries with a slash in the middle of them into a text box and when I press my "map" button, explorer launches and connects to google maps with the distance between these two places. My code is like this; (my button name is map and my textbox name is country)

-----------------------------------------------------------
Private Sub map_Click()


Dim country As String
Dim link As String


On Error GoTo myErr


ulke_ara = Me.country
link2 = "https://www.google.com/maps/dir/"
Application.FollowHyperlink link2 & country




On Error GoTo 0


Exit Sub


myErr:


Resume Next


End Sub

---------------------------------------

So is there a way that I can get these distance information back to access form (preferably in a text box) when I press the map button?

I think its something like impossible but I need to do it haha :)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Got me, but I don't know if it would work. For instance, distance between New York City and Montreal is approx. 370 miles and distance between Whitehorse and Houston is approx. 2800 miles but both are "distance between USA and Canada". Seems like there are a variety of distance calculators on the web, anyhow.
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,938
Members
451,730
Latest member
BudgetGirl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top