السلام عليكم ممكن اضافة على هذ الكود من تعديل الغالي خالد الرشيدي عدم ترحيل البيانات اذا كان من الخلية k9:l23 لاتوجد بها بيانات مقابل الخلية المكتوب فيها فقط لاان المشكلة هنا لما عدلت الكود فقط صف واحد الي اتتفعل باقي الصفوف لا , الرجاء المساعدة
Sub exchange_store()
Dim positve As Boolean, i As Long
Do While Cells(i + 9, 11).Value <> ""
If Cells(i + 9, 11).Value > 0 Then
positve = True
MsgBox Cells(i + 1, 11).Address & " " & "There IS a Positive Number In The Cell"""
Exit Do
End If
i = i + 1
Loop
If i And positve = False Then
Application.ScreenUpdating = False
azsh = Sheet12.Range("l100000").End(xlUp).Row + 2
Sheet5.Range("e9:l23").Copy
Sheet12.Cells(azsh, 5).PasteSpecial Paste:=xlPasteValues
MsgBox "Migration Successful", vbDefaultButton1, "Add"
Sheet5.Range("f9:f23").ClearContents
Sheet5.Range("k9:l23").ClearContents
Application.CutCopyMode = False
Application.ScreenUpdating = True
End If
End Sub
المخزن 878.rar