|
6#
楼主 |
发表于 2008-3-18 18:17:13
|
只看该作者
呵呵,给忘了,谢谢提醒, 使用下面的swo网友的函数来实现
Private Function Myjm(strA As String) As String
Dim A, B As Long
Dim C, E, jm As String
A = Len(strA)
For B = 1 To A
jm = ""
C = Mid(strA, B, 1)
If C >= 0 And C <= 9 Then
If C = 0 Then jm = ChrW(8320)
If C = 1 Then jm = ChrW(8321)
If C = 2 Then jm = ChrW(8322)
If C = 3 Then jm = ChrW(8323)
If C = 4 Then jm = ChrW(8324)
If C = 5 Then jm = ChrW(8325)
If C = 6 Then jm = ChrW(8326)
If C = 7 Then jm = ChrW(8327)
If C = 8 Then jm = ChrW(8328)
If C = 9 Then jm = ChrW(8329)
Else
E = E & C
End If
E = E & jm
Next B
Myjm = E
' Debug.Print E
End Function |
|