替换
Private Function Num2Char(x As String) As String
For I = 0 To 9
x = Replace(x, I, Mid$("零壹贰叁肆伍陆柒捌玖", I + 1, 1))
Next I
Num2Char = x
End Function 作者: tony_wy 时间: 2010-11-30 13:33
前辈,是把这个放在模块里吗?作者: wanshan 时间: 2010-11-30 13:41
放到模块里,建一个模块,复制下面的代码贴进去保存:
public Function Num2Char(x As String) As String
For I = 0 To 9
x = Replace(x, I, Mid$("零壹贰叁肆伍陆柒捌玖", I + 1, 1))
Next I
Num2Char = x
End Function