ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[¤À¨É] 数¦r¨ç数

[¤À¨É] 数¦r¨ç数

Function 数¦r(ByVal rang As String)
Dim i As Integer, str As Integer
For i = 1 To Len(rang) '¹M历单¤¸®æ¤¤¨C个¦r²Å
If VBA.IsNumeric(Mid(rang, i, 1)) Then
str = str & Mid(rang, i, 1)
End If
Next i
数¦r = str
End Function
学习

¶K¥N½X½Ð¥Î¥N½X®Ø¬[¡A´N¬O¤W­±ªº"<>''²Å¸¹
§K±o±¼¦r±¼²Å¸¹¡C

TOP

str = str Mid(rang, i, 1)
¦n¹³À³¬°
str = str & Mid(rang, i, 1)

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD