|
不知道是不是这个
Public Function PinYin(Tstr As String) As Long
Dim I As Long
I = Asc(Tstr)
If I >= Asc("啊") And I < Asc("芭") Then PinYin = 1
If I >= Asc("芭") And I < Asc("擦") Then PinYin = 2
If I >= Asc("擦") And I < Asc("搭") Then PinYin = 3
If I >= Asc("搭") And I < Asc("蛾") Then PinYin = 4
If I >= Asc("蛾") And I < Asc("发") Then PinYin = 5
If I >= Asc("发") And I < Asc("噶") Then PinYin = 6
If I >= Asc("噶") And I < Asc("哈") Then PinYin = 7
If I >= Asc("哈") And I < Asc("击") Then PinYin = 8
If I >= Asc("击") And I < Asc("喀") Then PinYin = 9
If I >= Asc("喀") And I < Asc("垃") Then PinYin = 10
If I >= Asc("垃") And I < Asc("妈") Then PinYin = 11
If I >= Asc("妈") And I < Asc("拿") Then PinYin = 12
If I >= Asc("拿") And I < Asc("哦") Then PinYin = 13
If I >= Asc("哦") And I < Asc("啪") Then PinYin = 14
If I >= Asc("啪") And I < Asc("欺") Then PinYin = 15
If I >= Asc("欺") And I < Asc("然") Then PinYin = 16
If I >= Asc("然") And I < Asc("撒") Then PinYin = 17
If I >= Asc("撒") And I < Asc("塌") Then PinYin = 18
If I >= Asc("塌") And I < Asc("挖") Then PinYin = 19
If I >= Asc("挖") And I < Asc("昔") Then PinYin = 20
If I >= Asc("昔") And I < Asc("压") Then PinYin = 21
If I >= Asc("压") And I < Asc("匝") Then PinYin = 22
If I >= Asc("匝") And I <= Asc("座") Then PinYin = 23
End Function
具体用法参照罗斯文数据库的按拼单排序报表,我也没有仔细研究它,你可以去研究研究 |
|