【发布时间】:2018-05-02 20:49:36
【问题描述】:
请告诉我是否可以使用 VBA (excel) 在组合了多个不同替换的字符串中执行替换?
例如:
text = Replace(text, find1, res1)
text = Replace(text, find2, res2)
实例:
text = Replace(text, " ", " ")
text = Replace(text, "&", "&")
text = Replace(text, "<", "<")
也许是正则表达式?
【问题讨论】:
-
是的,您可以完全按照您的示例显示的那样做——使用三个语句。除非您遗漏了更多细节...
标签: regex excel string vba replace