• ForNext Loop (2000)

    • This topic has 2 replies, 2 voices, and was last updated 18 years ago.
    Author
    Topic
    #441395

    Please see attached workbook which I think explains what I am trying to accomplish.
    Thank you.

    Viewing 0 reply threads
    Author
    Replies
    • #1059773

      Try this:

      Sub GetBlindBogeyScores()
      Dim rs As Long
      Dim rt As Long
      rt = 1
      For rs = 1 To Range(“A65536”).End(xlUp).Row
      If Right(Range(“B” & rs), 1) = “2” Then
      rt = rt + 1
      Range(“A” & rs & “:B” & rs).Copy _
      Destination:=Range(“E” & rt)
      End If
      Next rs
      End Sub

      • #1059788

        Hans,
        This macro works fine, with a few modifications to suit my particular situation.
        I thank you very much.

    Viewing 0 reply threads
    Reply To: ForNext Loop (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: