Public Function sumtext(rng As String)
For i = 1 To Len(rng)
If InStr("0123456789", Mid(rng, i, 1)) And Mid(rng, i + 1, 1) <> ")" Then
sumtext = sumtext + Mid(rng, i, 1)
Else
sumtext = sumtext + "+"
End If
Next
sumtext = Eval(sumtext + "+0")
End Function
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |