Community of VE/MapPoint Users and Developers
This is a discussion on VBA help needed using MapPoint.Application object within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm trying to use some code in an Excel macro, taken from the MSDN site, using the ImportTerritories method. The ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| VBA help needed using MapPoint.Application object Sub CreateTerritoriesMap() Dim objApp As New MapPoint.Application objApp.Visible = True objApp.UserControl = True Dim szconn As String Dim oDS As MapPoint.DataSet With objApp.ActiveMap.DataSets 'Excel sheet szconn = objApp.Path & "\Samples\Terrs.xls!Sheet1!A1:E127" Set oDS = .ImportTerritories(szconn, , geoCountryUnitedStates, , geoImportExcelA1) End With End Sub However, the code fails on the first Dim statement as 'User-defined type not defined'. I've referenced the following: Microsoft MapPoint 11.0 Object Library (Europe) Microsoft MapPoint Control 11.0 However, looking in the Object Browser only shows a Map and a MapPointUtilities class, i.e. no MapPoint class. Where can I get the MapPoint class from? Or, is there another way I could automatically export data from excel and produce a Territory map in MapPoint? I am using MapPoint 2004 and VB 6.0 through Excel. |
![]() |
| Tags |
| mappointapplication, needed, object, vba |
| ||||
| Posted By | For | Type | Date | |
| MetaGer, Suche nach: MapPoint.Application | This thread | Refback | 05-21-2008 05:12 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Job Offer: Mappoint / Dot Net Developer Needed ASAP | sbrewer | MapPoint 2006/2009 Discussion | 0 | 02-20-2006 09:10 PM |
| c# ImportData method help needed | fletch | MapPoint 2006/2009 Discussion | 8 | 03-09-2005 10:15 AM |
| Less Address Accuracy Needed(!) | NickS | MapPoint 2006/2009 Discussion | 2 | 11-28-2003 04:39 AM |
| route object to drawing object | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-09-2003 11:29 PM |
| Help Needed...Received the following Error Reported | bkwhite | MapPoint 2006/2009 Discussion | 2 | 11-19-2002 06:31 AM |