Last active
August 29, 2015 14:14
-
-
Save stevehenderson/76553c4b31b25cffda79 to your computer and use it in GitHub Desktop.
A VBA function to count decimal points in text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function countDecimals(incomingStr) As Integer | |
Dim stringParts() As String | |
stringParts() = Split(incomingStr, ".") | |
Dim i As Integer | |
i = UBound(stringParts) | |
countDecimals = i | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment