السلام عليكم
Private Sub ComboBox1_Change()
Dim x As Integer
x = Len(Me.ComboBox1)
For i = 1 To x
If Not IsNumeric(Mid(Me.ComboBox1, 1, x)) Or Mid(Me.ComboBox1, 1, x) < 0 Then
MsgBox "ادخال خاطئ"
Me.ComboBox1.Value = ""
ElseIf IsNumeric(Me.ComboBox1.Value) And Me.ComboBox1.Value - Int(Me.ComboBox1.Value) > 0 Then
MsgBox "ادخال خاطئ"
Me.ComboBox1.Value = ""
Exit Sub
End If
Next
End Sub
Add_Remove_________2.rar