Results 1 to 15 of 15

Can you change the order/pattern that vba uses to loop through a range?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    330

    Can you change the order/pattern that vba uses to loop through a range?

    So if i set a "for each cell in range" loop up with range A1 to ?# the loop checks cells in the order A1,B1,C1..?1,A2,B2,C2...?2...A#,B#,C#...?# is there a way to change the order to A1,A2,A3...A#,B1,B2,B3...B#...?1,?2,?3...?#
    I am trying to get a macro to look for three in a three consecutive values in a row or column without having to write a unique loop for each row or column.
    Last edited by Leon V (AW); 06-07-2013 at 05:16 AM. Reason: remove range size limit

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