Private Sub Command1_Click()
Dim a As String,dx As Integer
Dim xx As Integer,sz As Integer
a = "ASDFasdfASDFYZ0123asdfyz456789"
For i = 1 To Len(a)
Select Case Mid(a,i,1)
Case "0" To "9"
sz = sz + 1
Case "A" To "Z"
dx = dx + 1
Case "a" To "z"
xx = xx + 1
End Select
Next
MsgBox "大写" & dx & "小写" & xx & "数字" & sz
End Sub