Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function basCountChar(strIn As String, Optional Delim As String = " ") As Long
'Usage:
'? basNumSpaces("My dog has NO! fleas")
'4
'basCountChar("My dog has NO! fleas", "o")
'2
'? basCountChar("My dog has NO! fleas", "dog")
'1
Dim varStr As Variant
varStr = Split(strIn, Delim)
basCountChar = UBound(varStr)
End Function