place a pushpin based on longitude n latitude using vba

chas
09-06-2006, 12:30 PM
can return long/lat of a waypoint but need to place a pushpin based on the long/lat of that waypoint.

Wilfried
09-06-2006, 02:37 PM
Hi,

I do not understeand your question very well, but if you need to place a pushpin on a give lat/long coordinate you can use this code. MP is the name of the ActiveX control in this example.

Location loc = MP.ActiveMap.GetLocation(lat, lon, 1);
Pushpin pp = MP.ActiveMap.AddPushpin(loc, name);

 
Web mp2kmag.com
mapforums.com