设置
我在 Excel 2012 中使用 VBA
问题
我需要搜索工作表并替换任何“#”。仅在第一列。第二个 Cells.Replace 不起作用。我认为这是因为“# # #”不喜欢那种类型的字符串。
当前代码
'Find and replace "#" with ""
Cells.Replace What:="###", Replacement:="", LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
Cells.Replace What:="# # #", Replacement:="", LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
任何事情都会。