我有这个代码,
Dim str As String, Dim replaceStr As String, Dim counter as Integer
str = "I have the number 3"
For counter = 1 To 5
replaceStr = Replace(str, counter, 99)
Next counter
我希望替换功能能够捕捉到,counter = 3以便将 3 替换为 99。到目前为止,我仍然得到"I have the number 3".
我已经尝试过Replace(str, CStr(counter), 99)并且仍然给我相同的结果。