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

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

قام بنشر

لو سمحتم أعضاء المنتدي الكرام

عايز ارحل البيانات الموجودة في شيت 1 وشيت2 وشيت3   من( k5 الي x)

 الي شيت  saad  من (c5)

ولكم جزيل الشكرalla.xlsm

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

Here's the code and please try to learn from the solutions as it is a bad attitude to wait the help all the time from other people

Sub Test()
    Dim a, e, sh As Worksheet, f As Boolean, lr As Long, r As Long
    Application.ScreenUpdating = False
        Set sh = ThisWorkbook.Worksheets("Saad")
        f = True: sh.Cells.ClearContents
        For Each e In Array("Sheet1", "Sheet2", "Sheet3")
            With ThisWorkbook.Worksheets(e)
                lr = .Cells(Rows.Count, "M").End(xlUp).Row
                a = .Range("K5:X" & lr).Value
                If f Then r = 5: f = False Else r = sh.Cells(Rows.Count, "C").End(xlUp).Row + 1
                sh.Cells(r, "C").Resize(UBound(a, 1), UBound(a, 2)).Value = a
            End With
        Next e
    Application.ScreenUpdating = True
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