Is there any alternative to the Webbrowser Control as it does not work with Google maps?
Is there any alternative to the Webbrowser Control as it does not work with Google maps?
Can you be more specific?
Depending on your need following may work:
1. API call using MSXML2.ServerXmlhttp
2. You can still use IE on google maps. Though you'd need to be creative in ways to parse/read data.
3. Use Selenium wrapper to pilot Chrome.
etc.
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
― Robert A. Heinlein
CK76
I do appreciate your answer, I just don't understand it :-)
I am not a advanced user of VBA, but I can make a application with a userform with a Webbrowser control.
My intension was to get the destination directions from Google Maps on a modeless userform.
But what I can read from others with my problem is that the webbrowser control has not been updated since IE 7 and therefor gives an error when trying to run Google Maps on it.
I can google Brownies and chocolate chip cookies, and that is great, but I also wanted go get driving directions :-)
I have tryied to update the registry with no look.
My application will be used by my colleagues so I need a solution where I doen't try to change there registry for HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE.
Then use Google API(s).
Distance-Matrix or Directions API.
https://developers.google.com/maps/d...e-matrix/intro
Note that this requires API Key, and you should read API usage & billing document. There was change to the model sometime last year, if I recall...
It's been a while since I coded for Google API and a lot has changed since (last time I did it was back in 2016/17). Try checking link below.
https://pulseinfomatics.com/new-use-...sses-in-excel/
I do use Google API(s). and have a API KEY.
I have made a application with The distance-Matrix.
What I want now is to make a application for Directions and that is no problem if I just open it in a Browser All Examples on You Tube show.
I want to open it on a userform with a Webbrowser.
UserForm with webbrowser isn't possible as far as I know, since it's controls are not updated as you mentioned.
I'm not sure what exactly you are trying to do... if you need Directions. Just use Directions API. Basically same concept as Distance & Matrix API, just different endpoint and parameters supplied.
If you want visual element, then why not just use Selenium Wrapper to control Chrome?
just looked up Selenium Wrapper and will have a look at it.
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks