Community of VE/MapPoint Users and Developers
This is a discussion on how to draw a line between points within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi everybody, I am totaly new to mappoint and mappoint "programming". I don't know if it is the right place ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| how to draw a line between points I am totaly new to mappoint and mappoint "programming". I don't know if it is the right place to post so please excuse me if I am wrong. Let me explain my problem. I have a list of locations and I would like to place them on a mappoint map and draw a line between them (just a normal straight line for the beginning). The list of locations and "routes" can be in either excel, access or sql format and if possible i would like a vba macro to do it. So is this possible ? and how ? Thank you very much. Bob. PS : If you happen to know any good tutorials about how to use excel and mappoint please be kind enough to post the url. |
| |||
|
Hi, Hope this will help: 1- Looking at the Mappoint HelpFile, you have this example: Code: Sub AddLineToMap(FromAddress1, To Address2) Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objLoc1 As MapPoint.Location Dim objLoc2 As MapPoint.Location 'Configure l'application Set objMap = objApp.ActiveMap objApp.Visible = True objApp.UserControl = True 'Obtient deux lieux et les agrandit Set objLoc1 = objMap.FindResults(FromAddress1).Item(1) Set objLoc2 = objMap.FindResults(ToAddress2).Item(1) Set objMap.Location = objLoc1 'Ajoute un trait reliant les deux lieux objMap.Shapes.AddLine objLoc1, objLoc2 End Sub MP2K is pleased to offer MapPoint For Dummies to our North American readers at the lowest price available anywhere. At $17.48 + $2.50 shipping, that is around $2 cheaper than other major Internet book retailers. 3- Do a search in this forum with keys as "excel", you will find all what you need Ciao |
![]() |
| Tags |
| draw, line, points |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| draw simple line between points | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-27-2004 04:15 AM |
| Points in a straight line | Dazzer | MapPoint 2006/2009 Discussion | 6 | 05-25-2004 11:27 AM |
| As I draw a line and then a pushpin on that line, .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-16-2002 08:35 AM |
| Hi I have a problem. When i draw a line and the.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-15-2002 10:06 AM |
| How do i change the default Line draw width (toolb.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-26-2001 11:39 AM |
Cheap flights Malta
Want to get away? You can fly away on cheap flights to Malta when you book with Holiday Hypermarket. Check it out now!
Turkey Weather
Check Turkey Weather before you travel. We provide information on Turkey including weather, flights and accommodation.
Cheap Flights to Cape Town
Here at dealchecker.co.uk we’ll shop around for cheap flights to Cape Town so you don’t have to. Find and Compare prices from over twenty UK travel agents with just one search.
Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!
Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com
Family activity holidays
Family holidays can be full of fun activity. Check out your options at Travel.co.uk
Cheap Holidays in Florida
Legendary weather! Visit On The Beach for info on cheap holidays in Florida.