Reputation: 1428
please tell me whether it is possible to perform a replacement in a string that combines several different substitutions using VBA (excel)?
For example:
text = Replace(text, find1, res1)
text = Replace(text, find2, res2)
Real example:
text = Replace(text, " ", " ")
text = Replace(text, "&", "&")
text = Replace(text, "<", "<")
Maybe regexp?
Upvotes: 1
Views: 104
Reputation: 96763
Nest them:
Text = Replace(Replace(Replace(Text, " ", " "), "&", "&"), "<", "<")
Upvotes: 1