Excel VBA 一种解决sendkey “//~`_=+{}[]|,.<>?/等特殊字符无法输入的方法
在这里我做了一个sub
Sub repla(teshu)
Dim s As Variant, i As Variant
s = Array("+", "^", "%", "~", "(", ")")
For Each i In s
teshu = replace(teshu, i, "{" & i & "}")
Next
End Sub
sub调用
b = Sheet1.Cells(x, y + 2).Value
repla b
当然也有其它方法大家可以自行研究开发。