Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Please Help! Exporting data from Mappoint within the MapPoint Desktop 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 ...
| |||||||
| Today's Posts | Twitter Feed | 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 |
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 Desktop Discussion | 4 | 03-12-2007 01:14 PM |
| Exporting Data | kdulaney | MapPoint Desktop Discussion | 0 | 05-17-2005 02:37 PM |
| Exporting MapPoint data | mr4tno | MapPoint Desktop Discussion | 1 | 05-11-2005 12:08 PM |
| exporting data | Anonymous | MapPoint Desktop Discussion | 3 | 02-15-2005 12:06 PM |
| Exporting Data from MapPoint | Anonymous | MapPoint Desktop Discussion | 0 | 12-16-2004 11:23 AM |