اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

  • أفضل إجابة
قام بنشر

There are 52 names in your file not 50 names. It seems you forgot to put a sequence numbers for two students

Try the following code

Sub Test()
    Dim lr As Long, r As Long, m As Long
    Application.ScreenUpdating = False
    With Sheet1
        lr = .Cells(Rows.Count, "B").End(xlUp).Row
        m = 3
        For r = 3 To lr
            .Cells(m, 6).Value = .Cells(r, 2).Value
            .Cells(m, 7).Value = .Cells(r, 3).Value
            m = m + 3
        Next r
    End With
    Application.ScreenUpdating = True
End Sub

 

  • Like 2
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information