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

ارجو افادتى للاهمية ولكم جزيل الشكر مطلوب للاهمية التجميع فى شيت


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

السلام عليكم أخي الكريم حسام

جرب الكود التالي ...

Sub Test()
    Dim ws As Worksheet
    Dim sh As Worksheet
    Dim lr As Long
    
    Set sh = Sheet4
    sh.Range("A5:F1000").ClearContents
    
    Application.ScreenUpdating = False
        For Each ws In ThisWorkbook.Worksheets
            If ws.Name <> sh.Name Then
                lr = sh.Cells(Rows.Count, 1).End(xlUp).Row + 1
                
                ws.Range("A5:F" & ws.Cells(Rows.Count, 1).End(xlUp).Row).Copy
                sh.Range("A" & lr).PasteSpecial xlPasteValues
            End If
        Next ws
        Application.CutCopyMode = False
    Application.ScreenUpdating = True
End Sub

 

رابط هذا التعليق
شارك

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