ironfelix717
Registered User.
- Local time
- Today, 15:19
- Joined
- Sep 20, 2019
- Messages
- 193
Hi all,
Last night i fiddled around and after about 3 hours of fiddling around, some black magic happened and i was able to embed Google Maps into a form.
Here is the source i followed: CLICK
This code uses the ActiveX control: Microsoft Web Browser control, which for whatever reason appears to be the preferred choice for displaying maps. The code is able to do 2 things:
1.) Point the Maps to user entered lat/long cords (from textbox)
2.) Retrieve lat/long cords from Maps FROM ADDRESS types into Maps API search bar
What i would like to do is retrieve the coordinates from the control On_Click. Fortunately, the Maps API shows you the cordinates in the bottom of the window when you select an area, but you can't copy the coordinates or anything so it kinda defeats the purpose. I don't have a clue how this code works (how does XML have anything to do with google maps). Someone smarter than me, i hope can chime in and try and get this code to pull the coordinates to VBA when clicked.
P.S. will post example file if needed for solving.
Last night i fiddled around and after about 3 hours of fiddling around, some black magic happened and i was able to embed Google Maps into a form.
Here is the source i followed: CLICK
This code uses the ActiveX control: Microsoft Web Browser control, which for whatever reason appears to be the preferred choice for displaying maps. The code is able to do 2 things:
1.) Point the Maps to user entered lat/long cords (from textbox)
2.) Retrieve lat/long cords from Maps FROM ADDRESS types into Maps API search bar
What i would like to do is retrieve the coordinates from the control On_Click. Fortunately, the Maps API shows you the cordinates in the bottom of the window when you select an area, but you can't copy the coordinates or anything so it kinda defeats the purpose. I don't have a clue how this code works (how does XML have anything to do with google maps). Someone smarter than me, i hope can chime in and try and get this code to pull the coordinates to VBA when clicked.
P.S. will post example file if needed for solving.