wie kann ich in Excel (in Visual Basic, of course) in einem Form
eine Variable validieren - und zwar ob diese keine Strings enthält.
Also eine reine Integer Variable ist - am Besten als IF-Abfrage!
Viele Grüße
A.S.
Function IsInteger(var) As Boolean
IsInteger = (TypeName(var) = "Integer")
End Function
Sub test()
Dim intg As Integer, st As String
intg = 1
Debug.Print IsInteger(intg)
st = 1
Debug.Print IsInteger(st)
End Sub
Gruß Matthias