Results 1 to 4 of 4

Help with loop to fill color of shapes (US map)

Threaded View

  1. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Help with loop to fill color of shapes (US map)

    My mistake, I read AH2:AH211 as if it was AH2:AH11.

    You can add them all to sList. There does not need to be a comma after the last item in the list.

    And obviously,

    For i = 2 To 11
    Becomes:
    For i = 2 To 211
    In the list, how would I include a media market name like "Charleston, WV"?
    Change the comma (in sList) to ";" or some other character.

    And then:
    sArray = Split(sList, ";")
    The point is that you have a list of items in one string separated by a character, then you use Split to split the string into a string array based on this character. It can be a comma, a semi-comma, "@", an empty space " ", or any character which you can put in a string.
    Last edited by StevenM; 06-28-2012 at 01:54 PM.

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