Is there any way, using the scripting available to Excel 2007 to display a Google Earth map inside a sheet?
I've used Excel to house the data that I've then gone and generated a KML file to load into Google Earth, but now they want to see a pretty little cell with a client address mapped out in Excel directly to pretty up the presentation.
Microsoft does have an ActiveX webbrowser control that I've used in the past and as Panji explainshow to create a web browser control in excel
Panji Tengkorak If what you're looking for is to display the html table as it is without the need to calculate the value later you can use WebBrowser Control, do this to add the WebBrowser control on a Sheet:
Then put this line of code anywhere you want it, it can be on a button or on your workbook event. In the following example I use button click:
Sub Button3_Click()
ThisWorkbook.ActiveSheet.WebBrowser1.Navigate2 "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=area+51&sll=37.0625,-95.677068&sspn=31.839416,60.732422&ie=UTF8&ll=37.237811,-115.807614&spn=0.015614,0.029655&t=h&z=15"
End Sub
It should be relatively simple to get coordinates from the spread sheet into the url.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With