جرب هذا التعديل
Private Sub CommandButton1_Click()
Dim Lr As Long, Val1, Val2
With Sheets("ارشيف")
Lr = .Cells(Rows.Count, "B").End(xlUp).Row + 1
Val1 = Application.WorksheetFunction.CountIf(.Range("B2:B" & Lr), B1)
Val2 = Application.WorksheetFunction.CountIf(.Range("C2:C" & Lr), C1)
If Val1 = 1 Or Val2 = 1 Then
MsgBox "هذه القيمة مكررة", vbExclamation, "خطأ"
Exit Sub
End If
.Cells(Lr, "B") = Me.Controls("B1").Value
.Cells(Lr, "C") = Me.Controls("C1").Value
.Cells(Lr, "D") = Me.Controls("D1").Value
.Cells(Lr, "C") = Me.Controls("E1").Value
.Cells(Lr, "D") = Me.Controls("F1").Value
MsgBox ("تم النسخ للارشيف")
End With
End Sub