+ Reply to Thread
Results 1 to 7 of 7

Do Until Cell IsEmpty

Hybrid View

  1. #1
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Do Until Cell IsEmpty

    Hi

    If you just want a pairing listing then try

    Sub aaa()
      For i = 1 To 44
        For j = i + 1 To 45
          outrow = Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
          Cells(outrow, 1).Value = i
          Cells(outrow, 2).Value = j
        Next j
      Next i
    End Sub
    Adjust the output place to suit.

    rylo

  2. #2
    Registered User
    Join Date
    10-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Do Until Cell IsEmpty

    Quote Originally Posted by rylo View Post
    Hi

    If you just want a pairing listing then try

    Sub aaa()
      For i = 1 To 44
        For j = i + 1 To 45
          outrow = Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
          Cells(outrow, 1).Value = i
          Cells(outrow, 2).Value = j
        Next j
      Next i
    End Sub
    Adjust the output place to suit.

    rylo
    Thanks rylo, I can use this for other parts of my projects!

+ 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