excel大小写转换程序

时间:2013-08-18 04:50:38
【文件属性】:

文件名称:excel大小写转换程序

文件大小:830B

文件格式:TXT

更新时间:2013-08-18 04:50:38

excel 大小写

excel大小写转换程序,很好用的。 Function NCN(account) 'Nummary Capital Number ybb = Round(account * 100) y = Int(ybb / 100) j = Int(ybb / 10) - y * 10 f = ybb - y * 100 - j * 10 zy = Application.WorksheetFunction.Text(y, "[dbnum2]") zj = Application.WorksheetFunction.Text(j, "[dbnum2]") zf = Application.WorksheetFunction.Text(f, "[dbnum2]") NCN = zy & "元" If j = 0 And f = 0 Then NCN = NCN & "整" End If If f <> 0 And j <> 0 Then NCN = NCN & zj & "角" & zf & "分" If y = 0 Then NCN = zj & "角" & zf & "分" End If End If If f = 0 And j <> 0 Then NCN = NCN & zj & "角" If y = 0 Then NCN = zj & "角" End If End If If f <> 0 And j = 0 Then NCN = NCN & zj & zf & "分" If y = 0 Then NCN = zf & "分" End If End If If account = "" Then NCN = "" End If End Function


网友评论