Community of VE/MapPoint Users and Developers
This is a discussion on Mappoint 2002 euro VBA within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; hey all, I hope you can help me. I am trying to make an automated program using excels VBA and ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mappoint 2002 euro VBA I hope you can help me. I am trying to make an automated program using excels VBA and the mappoint linkage. What the idea is, that it will ask for a Uk postcode - once given it will go onto mappoint and bring back into a spreadsheet, how close each of 118 other postcodes are. This shouldnt be too difficult in my mind - i have a list of all the postcodes in excel and i should be able to get it to lookup off the excel spreadsheet. But currently i have tried to just program it with 2 places, yet i still cant get it to return a value. I would post the code, but its so confusing with all the things i have tried i am actually going to start again because i dont know where i am. Any help much appreciated. Regards Dan |
| |||
| code i have now done
some of the code i have now done is Sub Macro2() ' ' Macro2 Macro ' Macro recorded 06/10/2003 by Daniel Fountain ' Dim MPApp As New MapPoint.Application Set MPApp = New MapPoint.Application MPApp.Visible = True MPApp.UserControl = True Dim objMap As MapPoint.Map Dim objLoc1 As MapPoint.Location Dim objLoc2 As MapPoint.Location Dim objCenter As MapPoint.Location objLoc1 = objMap.FindAddressResults(, , , , IP21ET) ' End Sub yet i keep getting an error saying object or block not defined (and i tried the pcode with a space and with speach marks) any ideas? |
| |||
|
DOn't know about in Excel, but in VB, you use a Mappointcontrol object, open it to the location you want then make it active before you can use it Dim objmap As MapPoint.Map Dim objLoc As MapPoint.Location Dim NA As New MapPoint.GeoMapRegion() Dim objpushpin As MapPoint.Pushpin AxMappointControl1.NewMap(NA.geoMapEurope) objmap = AxMappointControl1.ActiveMap objLoc = objmap.GetLocation(53.585083333333, -2.70344, 25) objpushpin = objmap.AddPushpin(objLoc, "1") objpushpin.BalloonState = MapPoint.GeoBalloonState.geoDisplayName Thats how I start my plotting program in vb.net anyways Hope this helps M |
![]() |
| Tags |
| euro, mappoint 2002, vba |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Has anyone got street address with MapPoint Euro 2004? | Anonymous | MapPoint 2006/2009 Discussion | 8 | 02-09-2005 09:13 AM |
| Is MapPoint 2004 Euro version available yet? | Anonymous | MapPoint 2006/2009 Discussion | 2 | 09-19-2003 10:30 AM |
| MapPoint 2002 | Anonymous | MapPoint 2006/2009 Discussion | 2 | 10-29-2002 12:25 PM |
| MapPoint 2002 | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-16-2002 08:43 AM |
| Hello. I am using MapPoint 2002. I am doing a lot .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-24-2002 02:04 PM |