View Single Post

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

Hi,

You probably will have an exception if you step with the debugger trough it. FindAddressResults returns a collection of Location object, not a Location object. So something like this should work:
Code:
Dim objLocResults As MapPoint.FindResults;
objLocResults = objMap.FindAddressResults(Plz1, stadt1, addresse1);
objMap.AddPushpin(objLocResults_Item(1));
Please check my syntax, as I'm not a VBA programmer
Reply With Quote