I have to count specific letters entered in a text box (which Ive completeed, as well as count the total number of words. I am going to call anything with a space before and after it a word. Im not really sure what to do for this. If someone has an idea it would be greatly appreciated! Thank you.
Here is my code to count a character...
Here is my code to count a character...
Code:
Count the number of times that character a is used in the string InputText
Function strCountA1(ByVal InputText As String, ByVal a As Char) As Integer
Dim i As Integer
For i = 0 To InputText.Length - 1
If InputText.Substring(i, 1) = a Then
strCountA1 = strCountA1 + 1
End If
Next
End Function