Private Function prvStringLenth(strString As String) As Long
Dim lngI As Long
Dim lngLenth As Long
prvStringLenth = 0
lngLenth = 0
If Len(Trim(strString)) > 0 Then
For lngI = 1 To Len(Trim(strString))
If Asc(Mid(Trim(strString), lngI, 1)) < 0 Then
lngLenth = lngLenth + 2 '如果asc码小于0则为汉字
Else
lngLenth = lngLenth + 1 '大于0则为英文
End If
Next
prvStringLenth = lngLenth
End If