- 帖子
- 2035
- 主題
- 24
- 精華
- 0
- 積分
- 2031
- 點名
- 0
- 作業系統
- Win7
- 軟體版本
- Office2010
- 閱讀權限
- 100
- 性別
- 男
- 註冊時間
- 2012-3-22
- 最後登錄
- 2024-2-1
|
回復 1# ML089
提供你參考。- Function decodeFMT(decode As String) As String
- Dim tLen%, txt$, num$
-
- If Len(decode) = 0 Then decodeFMT = "": Exit Function
- num = "=Sum("
- For tLen = 1 To Len(decode)
- txt = Mid(decode, tLen, 1)
- If txt = "(" Or txt = ")" Or txt = "+" Or txt = "+" Or txt = "+" Or txt = "-" Or txt = "*" Or txt = "/" Or (txt >= "0" And txt <= "9") Then
- num = num + txt
- End If
- Next tLen
- decodeFMT = num + ")"
- End Function
複製代碼
EXCEL VBA 計算說明轉金額.rar (9.07 KB)
|
|