'/** ' * Copyright mpl by ERB software ' * http://wiki.yaslaw.info/dokuwiki/doku.php/vba/functions/index#islong ' * ' * Prüft on ein Value ein Long-Wert ist ' * @param Variant Zu prüfender Wert ' * @param Boolean Angabe, ob Integer/Byte auch als Long gelten (Integer: -32768 bis 32767) ' * @return Boolean ' */ Public Function isLong(ByVal iExpression As Variant, Optional ByVal iWithInteger As Boolean = False) As Boolean If Not IsNumeric(iExpression) Then Exit Function If iExpression < -2147483648# Or 2147483647 < iExpression Then Exit Function isLong = (CLng(iExpression) = iExpression) If Not iWithInteger And isLong Then isLong = Not isInteger(iExpression) End Function