اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

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

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

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

استخدم هذا الكود

Sub AdSh_Data()
Dim ws As Worksheet, C As Range
Dim x As Byte, WF As Object
Dim LR As Long, Sh As Worksheet
Set ws = Sheets("ورقة1")
Set WF = Application.WorksheetFunction
LR = ws.Range("A" & Rows.Count).End(3).Row
For Each C In ws.Range("A1:A" & LR)
x = WF.CountIf(ws.Range("A1:A" & C.Row), C)
On Error Resume Next
If x = 1 Then
If Len(Sheets(C).Name) = 0 Then
Sheets.Add(after:=Sheets(Sheets.Count)).Name = C.Value
End If
End If
Next
88:
For Each Sh In ThisWorkbook.Worksheets
For Each C In ws.Range("A1:A" & LR)
If Sh.Name = C.Value Then
p = p + 1
Sh.Range("A" & p).Resize(, 8) = ws.Cells(C.Row, 1).Resize(, 8).Value
End If
Next
p = 0
Next
End Sub

 

  • Like 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