Dim m(1 To 26) As Integer
Dim i As Integer
Private Sub Command1_Click()
Dim j As Integer
st = Text1.Text
For i = 1 To Len(st)
c = Mid(st, i, 1)
If c >= a And c <= z Then
j = Asc(c) - 64
m(j) = m(j) + 1
End If
Next i
For i = 65 To 90
h = Chr(i)
If m(i - 64) <> 0 Then
Text2 = Text2 & h & "=" & m(i - 64)
End If
Next i
End Sub