ich ermittle mittels VBA per Multiplikation bestimmte Werte.
Wie kann ich Abfragen ob das Ergebnis eine ganze Zahl ist.
z.B.: 60/20 = 3 --> ganze Zahl
65/3 = 21,67 --> keine ganze Zahl
Danke im Voraus.
VG
Steffen
mittels VBA per Multiplikation
Deine Formeln sind alle Divisionen!Sub test()
Dim strTest As String
strTest = "Ganzzahl"
If Range("A1") Int(Range("A1")) Then
strTest = "keine " & strTest
End If
MsgBox (strTest)
End Sub