Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Mapping from a spreadsheet

This is a discussion on Mapping from a spreadsheet within the MapPoint Desktop 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 ...

  1. #1
    amandolin is offline Junior Member White Belt
    Join Date
    Jun 2008
    Posts
    2

    Red face Mapping from a spreadsheet

    Hi all,
    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!

  2. #2
    John.Sewell is offline Member Yellow Belt
    Join Date
    Oct 2007
    Posts
    38

    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.

  3. #3
    amandolin is offline Junior Member White Belt
    Join Date
    Jun 2008
    Posts
    2

    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...

  4. #4
    John.Sewell is offline Member Yellow Belt
    Join Date
    Oct 2007
    Posts
    38

    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 01:05 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mapping GPS Data
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 07-24-2009, 09:19 AM
  2. Where is Routing Spreadsheet? Shapefile Help?
    By pvsmith in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-06-2006, 04:33 AM
  3. screwedup spreadsheet
    By rgrstvr in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-11-2006, 04:12 PM
  4. 3-D Mapping
    By jgospe in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-17-2004, 08:51 AM
  5. Different Pushpin Symbols from Spreadsheet
    By Terry in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-20-2003, 12:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79