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

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

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

السلام عليكم ورحمة الله

لعل هذا الكود ان يفى بالغرض

Sub ReArrang_Data()
Dim ws As Worksheet, C As Range
Dim i As Long, p As Long
Set ws = Sheets("Sheet1")
p = 3
i = 6
Do While i <= 16
For Each C In ws.Range(Cells(4, i), Cells(19, i))
If Len(C) > 0 Then
p = p + 1
ws.Cells(p, 2) = C.Value
ws.Cells(p, 3) = C.Offset(0, 1).Value
End If
Next
i = i + 2
Loop
End Sub

 

  • Like 3

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