Hi everyone,
I am trying to get a dropdown list of locations in excel to snap to the location in an embedded MapPoint map.
Does anyone know the VBA to zoom to location in Mappoint, or how to integrate these?
Sub Location()
Dim oMap As MapPoint.Map
Dim oLoc As MapPoint.Location
Dim strPlace As String
Set oMap = GetObject(, "MapPoint.Application").ActiveMap
oMap.Application.Units = geoMiles
Set oLoc = oMap.GetLocation(strPlace)
oLoc.GoTo
End Sub
I need a way to tell VBA in MapPoint to look in a certain cell for the string value (Sheet main, cell E2), but the map is embedded in excel itself. Does anyone know how to refer to this location if it is embedded, or if this is even the correct way to do this? This cell will return a geoLocation for the drop down menu, which has city names.
Thanks!
Bookmarks