Community of VE/MapPoint Users and Developers
This is a discussion on Mapping from a spreadsheet within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, I'm new to the Mappoint program and all that it entails. What I am trying to do is ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I'm new to the Mappoint program and all that it entails. What I am trying to do is this: import addresses from an excel spreadsheet and have each pin show up as a number associated to a number on the spreadsheet. For instance: if I have a spreadsheet with the following columns and 20 rows (or more): Number, Street Address, City, State, Zip. How can I make mappoint put numbered pins down that correspond to the number column in the spreadsheet. (or is there another way, possibly using the row numbers, or to create my own pins and associate them somehow?) Thanks for any advice you can provide! |
| |||
| Re: Mapping from a spreadsheet
It depends! (a) do you want a pin: (i) with a number on it, or (ii)simply a description associated with the pin which has the row data? (b) are you expecting to import excel data into Mappoint or run this using VBA from Excel? If you want (a.i) then there is a limited option to do this by using the pin icons with successive numbers on (they don't go very high) but you will want to do this using VBA. If you want (a.ii) you could use Mappoint import: create a formula in excel with the row address (using Address function) and then use that column as the location description column. I am happy to describe further if you clarify your aim. |
| |||
| Re: Mapping from a spreadsheet
Thanks for the quick response! yes, I am aiming for ai, but the pin has to match a number from the spreadsheet. Have been doing it manually, but that's incredibly time-consuming. Am not sure what VBA is? The goal is to be able to differentiate the pins on the map without having to click on them to get the address information. Likely to be more numbers than what's listed in mappoint, but can deal with that later... |
| |||
| Re: Mapping from a spreadsheet
VBA is Visual Basic for Applications (ie the macro language in Excel). If you are not familiar with it, there are some good articles on the site about getting VBA to talk to Mappoint and then put the data into Excel. You probably want to start there. Basically you need to reference Mappoint within the VBA editor. The numbered pins are graphic, so you can't program the numbers directly. They start at symbol#208 (pin with '1' on it, 209 has '2' etc) so you need to place pushpins on the map and change the symbol to the right symbol# for your row (I don't know how high these numbered pins go - not far I think, but there is continuing set with a different symbol number range. (a link to the full list of symbol numbers must be somewhere on the site). The code, when you get there, will need to be something like: Code: Dim PP As MapPoint.Pushpin
Dim oLocn as Mappoint.Location
Dim Cell as Excel.Range
Dim i as integer
i=0
For each cell in ActiveWorkbook.Range("TargetRange")
i=i+1
Set oLocn = gobjMap.FindResults(Cell.Value).Item(1)
Set PP = MapPoint.ActiveMap.AddPushpin(oLocn, "")
PP.Name = "Pushpin " & i
PP.Symbol = 207+i
Next Cell
Last edited by Eric Frost; 06-09-2008 at 02:05 PM. |
![]() |
| Tags |
| mapping, spreadsheet |
| ||||
| Posted By | For | Type | Date | |
| Environment«Science«DirectoryFaqs Web Directory | This thread | Refback | 2 Days Ago 02:11 PM | |
| JAVA, J2ME Bluetooth Programmierung und Softwareentwicklung | Bluetooth, Diplomarbeit, Java / J2ME | Programmierung & Software Entwicklung Java J2ME Android | This thread | Refback | 10-05-2008 09:14 AM | |
| 94303 Directory | This thread | Refback | 08-17-2008 04:45 PM | |
| MapPoint Download - MP2K Magazine | This thread | Refback | 06-12-2008 11:15 AM | |
| Map Individual U.S. States in MapPoint - MP2K Magazine | This thread | Refback | 06-09-2008 10:34 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where is Routing Spreadsheet? Shapefile Help? | pvsmith | MapPoint 2006/2009 Discussion | 2 | 08-06-2006 05:33 AM |
| screwedup spreadsheet | rgrstvr | MapPoint 2006/2009 Discussion | 3 | 01-11-2006 05:12 PM |
| 3-D Mapping | jgospe | MapPoint 2006/2009 Discussion | 1 | 12-17-2004 09:51 AM |
| Mapping GPS Data | Anonymous | MapPoint 2006/2009 Discussion | 2 | 09-24-2003 12:11 PM |
| Different Pushpin Symbols from Spreadsheet | Terry | MapPoint 2006/2009 Discussion | 0 | 05-20-2003 01:52 AM |