Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Ctrl+T (Data -> Territories...) programatically MapPoint within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I've got Excel, Word and MapPoint working quite nicely together, plotting territories from Excel and then pasting the map into ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Ctrl+T (Data -> Territories...) programatically MapPoint When Excel has plotted the territories (by UK Postcode Sectors) into MapPoint - MapPoint is in the standard Legend and Overview mode, which doesn't show the Postcode Sectors. What you can do manually is press Ctrl+T or click Data -> Territories... - then MapPoint switches to Territory Manager and the Postcode Sectors are displayed. Then the macro continues and pastes into Word etc. Any ideas how to switch into Territory Manager in VBA? I've tried: With objApp.ActiveMap.DataSets szconn = "C:\Mapping Data.xls" & "!Sheet1!A:B" Set oDS = .ImportTerritories(szconn, , geoCountryUnitedKingdom, , geoImportExcelA1) Application.DisplayAlerts = False Set oDS = .ShowImportTerritoriesWizard Application.DisplayAlerts = True End With but keep getting an error that the Import Territories Wizard cannot run because there is already a DataSet present. |
| |||
|
hi, thanx for feedback
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Territory creation - glad you found a way
Did you try running the territory creation before the data input portion of your macro? I'm getting ready to do a project with mappoint and excel and seem to be constantly frustrated about a lack of clear documentation regarding how the mappoint object model components work... |
![]() |
| Tags |
| >, ctrl, data, mappoint, programatically, territories |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr | Anonymous | MapPoint 2006/2009 Discussion | 2 | 01-16-2006 03:01 AM |
| MapPoint to Gif Programatically | Anonymous | MapPoint 2006/2009 Discussion | 5 | 03-17-2004 08:32 AM |
| .Save and .SaveAs don't work in from VB using MapPoint Ctrl | Anthony_Hunt | Wish List | 1 | 05-29-2003 06:51 PM |
| Key press Event of Mappoint Ctrl in VC++ | Anonymous | MapPoint 2006/2009 Discussion | 1 | 04-28-2003 10:45 AM |
| Is MapPoint capable of programatically returning a.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-18-2002 04:27 AM |
Costa Brava Holiday
Beautiful kilometres of sandy beaches await you should you choose a Costa Brava holiday through UlookUbook!