Community of VE/MapPoint Users and Developers
This is a discussion on Please Help! Exporting data from Mappoint within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi Guys Need some urgent help. Trying to create a function to simply list all Postcode Sectors within a 30 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Please Help! Exporting data from Mappoint Need some urgent help. Trying to create a function to simply list all Postcode Sectors within a 30 minute drivetime of a list of postcodes. Almost there - just need a way of getting the data into Excel and i'm stumped. Here's what i have so far: Function GetDrivetime(Postcode as String) Dim objapp As MapPoint.Application Dim objDataSet As MapPoint.DataSet Dim objDataMap As MapPoint.DataMap Dim objField As MapPoint.Field Dim objMap As MapPoint.Map Dim objLocation As MapPoint.Location Dim objShape As MapPoint.shape 'Create Mappoint as Object and allow control Set objapp = CreateObject("Mappoint.application") objapp.Visible = True objapp.UserControl = True 'Add data to current map Set objDataSet = objapp.ActiveMap.DataSets.GetDemographics(geoCount ryUnitedKingdom) Set objField = objDataSet.Fields(1) Set objDataMap = objDataSet.DisplayDataMap(geoDataMapTypeShadedArea , objField, geoShowByPostal2, , , , 15) 'Find and set location Set objMap = objapp.ActiveMap Set objLoc = objMap.FindResults(Postcode).Item(1) 'Create drivetime Set objShape = objMap.Shapes.AddDrivetimeZone(objLoc, 30 * geoOneMinute) 'Need to get this data into Excel! Help! objapp.Quit Set objapp = Nothing End Function Please get back asap if you can help out. Urgent! Thanks sugarflux |
| |||
| Re: Please Help! Exporting data from Mappoint
Sorry Eric - my mistake - that's what i meant: set rst = objDataSet.QueryShape(objShape) returns the permission denied error. Also tried set rst = objDataSet.QueryAllRecords which also produces the permission denied error I'm am that desperate to figure this out i've even started looking at api calls to try to call the 'Export To Excel' function from the menu - which is stupidly complicated but i need this out today and running out of time! Any other suggestions ? Thanks for your help, sugarflux |
| ||||
| Re: Please Help! Exporting data from Mappoint
I played around with it for a while in Excel VBA and found the same problem, then I searched in this forum -- MapUser gives a great explanation and the solution! See his post at -- can I get demographic data at 1, 3, and 5 mile radius? Hope this helps. Eric |
![]() |
| Tags |
| data, exporting, mappoint |
| ||||
| Posted By | For | Type | Date | |
| Gmane -- Mail To News And Back Again | This thread | Refback | 01-19-2008 12:08 PM | |
| MapPoint Download - MP2K Magazine | This thread | Refback | 07-19-2007 07:10 AM | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 07-18-2007 11:20 AM | |
| Programming MapPoint in .NET - MP2K Magazine | This thread | Refback | 07-16-2007 07:54 AM | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 07-12-2007 11:11 AM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 07-10-2007 04:55 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems exporting MapPoint data to Excel in embedded map | o0beaner | MapPoint 2006/2009 Discussion | 4 | 03-12-2007 03:14 PM |
| Exporting Data | kdulaney | MapPoint 2006/2009 Discussion | 0 | 05-17-2005 03:37 PM |
| Exporting MapPoint data | mr4tno | MapPoint 2006/2009 Discussion | 1 | 05-11-2005 01:08 PM |
| exporting data | Anonymous | MapPoint 2006/2009 Discussion | 3 | 02-15-2005 01:06 PM |
| Exporting Data from MapPoint | Anonymous | MapPoint 2006/2009 Discussion | 0 | 12-16-2004 12:23 PM |