VBA Excelreplace编译错误:“编译错误:错误的参数数量或无效的属性分配”
VBA Excel编译错误
编译我的代码时遇到了麻烦
Dim OriginalText As String Dim CorrectedText As String OriginalText = Range("A5").Value CorrectedText = Replace(OriginalText, "a", "o") Range("A5").Offset(, 1).Value = CorrectedText
在单元格A5中,我有Micrasaft这个词,我想replace成微软,但是它不是编译的。
我得到这个错误“编译错误:错误的参数数量或无效的属性分配”
你能帮我么?