Private Sub Command1_Click() Dim i Chars = 0 For i = 0 To Len(Text1.Text) - 1 Text1.SelStart = i Text1.SelLength = 1 If Asc(Text1.SelText) > 32 And Asc(Text1.SelText) <= 126 Then Chars = Chars + 1 End If Next MsgBox "The number of CHARACTERS is:" & vbCr & Chars, vbInformation End Sub