'HZPY(String):返回汉字拼音首字母函数:
Function HZPY(hzstr As String) As String
Dim p0 As String, c As String, str As String
Dim I As Integer, J As Integer
p0 = "吖八嚓咑妸发旮铪讥讥咔垃呣拿讴趴七呥仨他哇哇哇夕丫匝咗"
For I = 1 To Len(hzstr)
c = "z"
str = Mid(hzstr, I, 1)
If Asc(str) > 0 Then
c = str
Else
For J = 1 To 26
If Mid(p0, J, 1) > str Then
c = Chr(95 + J)
Exit For
End If
Next
End If
HZPY = HZPY + c
Next
End Function