Eingabe = Inputbox
If Eingabe Like "*#######" Then
Eingabe = Right(Eingabe, 7)
Else
Msgbox "Eingabe endet nicht mit 7 Ziffern."
End if
Sub Unit()
Dim x
x = Application.InputBox("7stellige", "Zahl ", , , , , , 1)
If x Like "#######" Then
MsgBox x & "=I.O."
Else
MsgBox x & "= nicht I.O."
End If
End Sub