السلام عليكم
أخي الحبيب
عذرا لانشغالي وقد اضطررت لسفر مفاجئ
أرجو أن يكون هذا هو ماتريد
Sub Load()
'Stop screen updating
Application.ScreenUpdating = False
Dim trg As Range, tbl As Range
'Check if data is OK >> STOP & exit
If [j5].Value = Empty Then MsgBox "Scan Your Item Please!", vbCritical, "Loding not completed": End
If [i5].Value = Empty Then MsgBox "Enter User Code Please!", vbCritical, "Loding not completed": End
a = WorksheetFunction.Match([j5].Value, [A:A], 0)
sht = [C1].Offset(a - 1, 0)
col = [E1].Offset(a - 1, 0)
Set trg = Sheets(sht).Cells(9, col)
trg.Value = trg.Value + 1
[i5:o11].ClearContents
MsgBox "Loding has been done successfully", vbOKOnly, "Tank you."
End Sub
تفضل المرفق أيضا به الكود
Implant Items Control2.rar