Results 1 to 7 of 7

Simple loop & array question.

Threaded View

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    Budapest, Hungary
    MS-Off Ver
    2013
    Posts
    7

    Simple loop & array question.

    So, all I want to do is a Do Until the end of an array loop. Here's my current code:

            Do Until allTeams(i - 7) <> ""
                If allTeams(i - 7) = cells(i, 6) Then
                    'Don't care about this case
                Else
                    ReDim Preserve allTeams(i - 6)
                    allTeams(i - 6) = cells(i, 6)
                End If
                i= i +1
            Loop
    I get the subscript out of range error.
    Last edited by randomdude; 01-17-2015 at 05:39 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simple loop question
    By kwagam in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-24-2014, 06:20 AM
  2. [SOLVED] Simple For loop Question
    By Boo123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2014, 05:17 PM
  3. [SOLVED] Loop & Array (Probably Simple!)
    By B_B in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 10:50 PM
  4. simple loop question
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2005, 04:05 PM
  5. [SOLVED] Simple question on For...Next loop
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2005, 11:05 AM

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