• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Webbrowser in a userform

jonastiger

Member
Hi
I have a userform in which I want to setup a webbrowser pointing to google maps and Lat/long reference.
This userform manages data from about 4000 clients/locations, so when it's open we can navigate through clients data e show treir location in a map.

77551
I'm using the code:

Code:
Private Sub Userform_Activate()

'Other code...

WebBrowser1.Navigate "https://www.google.com/maps/" & TxtLatitude.Text &" "& TxtLogitude.Text

End Sub

For the button GO
Code:
Private Sub BtnGO_Click

Me.WebBrowser1.Navigate "https://www.google.com/maps/" & Me.TxtLatitude.Text &" "& Me.TxtLogitude.Text

End Sub

As shown in the picture, the webbrowser only links to google page
I have also tried the link "https://www.google.com/maps?q="
The ideal would be no need for the button so, while navigate to the next client, the webbrowser would update location with its coordinates

I can't make it work, I've searched in the net and no answer to this, so I would appreciate your time and help
Thank You very much in advance
JT
 
It seems that apparently webbrowser setup with maps is not available. I'm googling for an answer or a piece of code and nothing solves my issue.
Some of search results are old and for Office 2007, 2010 and 2013.
I work with office 2019 and 365. Maybe a compatibility problem?
 
Back
Top