+ Reply to Thread
Results 1 to 2 of 2

Dropdown to import in embedded Mappoint, need to refer to cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Dropdown to import in embedded Mappoint, need to refer to cell

    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!

  2. #2
    Registered User
    Join Date
    10-09-2012
    Location
    Maldives
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Dropdown to import in embedded Mappoint, need to refer to cell

    sounds like quit difficult .. but the point is looking for map point right ..So u can calculate and put a picture on u r map on Graph and make a point while u choose a cell.. I have done this map .. I used that .. it was working great ..!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1