If I understand correctly, that you want to count the number of characters
in a string ignoring any spaces in the string, then the following function
should do it ...
Public Function CountIgnoringSpaces(ByVal InputString As String) As Long
CountIgnoringSpaces = Len(Replace(InputString, " ", vbNullString))
End Function
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.