Hoi,
Sorry voor mijn korte reactie vannacht (biertje wezen drinken) dit is de code die ik probeer te gebruiken
Private Sub TextBox15_Change()
With Me.ActiveControl
If Not IsNumeric(.Value) And .Value <> vbNullString Then
MsgBox "Sorry, alleen cijfers toegestaan"
.Value = vbNullString
End If
End With
Dim str As String, komma As Integer
str = ActiveCell.Value
komma = InStr(1, str, ",")
If komma <> 7 Or Len(str) < 10 Then
MsgBox "Voer een geldig getal in."
End If
End Sub
Groetjes
Piet