My code snippets

Name: Function IsInteger

Author: Rob Vonk

Language: Visual Basic for Applications

Description:
Determine if a given string is integer

Snippet:

Function IsInteger(S As String) As Boolean
    IsInteger = S = "" Or (IsNumeric(S) And Int(Val(S)) = Val(S))
End Function