View Single Post

  #10 (permalink)  
Old 03-05-2008
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Re: Placing PushPins using VBA programing

Hi,

then something else should be wrong. did you try a simple test like this? eventually with other addresses and so ? this is C# but you can easy translate it into VBA. Piece of code is tested:

Code:
    int name = 1;
    FindResults addrResults = MP.ActiveMap.FindAddressResults("churchilllaan", "Schoten", "", "", "", GeoCountry.geoCountryBelgium);
    foreach (object o in addrResults) {
        Location loc = o as Location;
        if (loc == null)
            continue;
        MP.ActiveMap.AddPushpin(loc, name.ToString());
        name++;
    }
Reply With Quote