Private Sub Command1_Click()
Dim a(26) As Integer
s = Text1.Text
For i = 1 To Len(s)
b = Asc(Mid(s, i, 1))
If b >= 97 And b <= 97 + 25 Then b = b - 32
If b >= 65 And b <= 65 + 25 Then a(b - 64) = a(b - 64) + 1
Next i
Text2.Text = ""
For i = 1 To 26
Text2.Text = Text2.Text & Chr(64 + i) & "=" & a(i) & " "
If i Mod 7 = 0 Then Text2.Text = Text2.Text & vbCrLf
Next i
End Sub