Public Function tiqu(str As String) As String
For i = 1 To Len(str)
If InStr(1, tiqu, Mid(str, i, 1)) = 0 Then tiqu = tiqu & Mid(str, i, 1)
Next
End Function
wanshan 发表于 2010-12-5 18:45
Public Function tiqu(str As String) As String
For i = 1 To Len(str)
If InStr(1, tiqu, ...
修改一下:
Public Function tiqu(str As String) As String
If Len(str)>0 Then
For i = 1 To Len(str)
If InStr(1, tiqu, Mid(str, i, 1)) = 0 Then tiqu = tiqu & Mid(str, i, 1)
Next
End If
End Function