+ Reply to Thread
Results 1 to 9 of 9

using coords to put names on a excell map

  1. #1
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    using coords to put names on a excell map

    hi,

    i have one sheet with a map with coords X and Y , and other sheet with names with coords X and Y, and i wanted to create a button, that when activated, the names would appear in the map, by the coords X and Y.

    i dont understand very much VBA, so i wouldlike to have Help.

    thks
    Attached Files Attached Files
    Last edited by Nuno Neves; 07-09-2011 at 07:33 AM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: using coords to put names on a excell map

    Please Login or Register  to view this content.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: using coords to put names on a excell map

    Thankyou very much DaveGugg

    it works perfectly

    can I, ask only one more thing before i close the thread

    its possible, to appear in the map, instead the name on the cell a colour ? and the name on a comment ?

    Excell have the possibility to write a comment on a cell, it would be perfect if in the cell appears a colour and attached to the cell the comment with the name of the person.

    thks in advance

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: using coords to put names on a excell map

    The following code will color the map red. To choose a different color, change the 3 to a different number. You can see what numbers refer to what colors here.

    Please Login or Register  to view this content.
    You can't add more comments to a cell while there are already comments. For example, Carolina, Linda, and Ana all have the same coordinates, so adding comments by code will fail when you try this. Let me know how you want to proceed.

  5. #5
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: using coords to put names on a excell map

    thks , yes, my intention was, in one comment to the same cell , to add all the names that have the same coords.

    so one comment will have all the names with the same coords.

  6. #6
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: using coords to put names on a excell map

    Give this a shot:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: using coords to put names on a excell map

    it gives an error : Run-time erro "1004"

    no cells were found


    could you also make a command to clean the data on the map , thks, sorry for the trouble.

  8. #8
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: using coords to put names on a excell map

    I hate this fix:

    Please Login or Register  to view this content.
    This will clear the map:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: using coords to put names on a excell map

    Thks Dave, awesome work


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1