+ Reply to Thread
Results 1 to 2 of 2

VB Loop in a Loop

  1. #1
    Registered User
    Join Date
    08-14-2007
    Posts
    1

    VB Loop in a Loop

    I need to create a loop within a loop. First loop works fine as follows:
    -------------------------------
    Please Login or Register  to view this content.
    ----------------------------
    At the 'start' point, first loop works downward through rows. Second loop would work across columns in each row within the first loop. I will have to use a variable for 'y' (the across value) b/c the number of cells containing data can vary between 3 & 9, but I have a COUNTA in each row setup to use as the variable.

    So spreadsheet data would look like this with A being the 'start' cell:
    A 1 2 3
    B 1 2 3 4 5 6
    C 1 2 3 4

    I need to pickoff A1, A2, A3, B1, etc, picking up every sub-category on the sheet.
    Thanks in advance!
    Chris
    Last edited by cdemaria; 08-16-2007 at 09:22 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    cdemaria

    Welcome to excelforum

    Please read forum rules & wrap your VBA code - see links below for rules

    If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
    http://www.excelforum.com/showthread.php?t=583950
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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