变量s中的0-9为什么没有被替换,如何改?
变量s中的0-9为什么没有被替换,如何改?程序代码:
Private Sub Form_Load() Dim s As String s = "73203d2022d6d0bbaac" For i = 1 To Len(s) a = Mid(s, i, 1) a = Replace(a, "0", "f") a = Replace(a, "1", "e") a = Replace(a, "2", "d") a = Replace(a, "3", "c") a = Replace(a, "4", "b") a = Replace(a, "5", "a") a = Replace(a, "6", "9") a = Replace(a, "7", "8") a = Replace(a, "8", "7") a = Replace(a, "9", "6") a = Replace(a, "a", "5") a = Replace(a, "b", "4") a = Replace(a, "c", "3") a = Replace(a, "d", "2") a = Replace(a, "e", "1") a = Replace(a, "f", "0") b = b & a Next Debug.Print b End Sub