Hi,
I have 2 search and replace vba challenges I'm struggling with:
Thanks!!
Yon
I have 2 search and replace vba challenges I'm struggling with:
- Replace based on partial string – replacing whole word based on partial string. Using "str* " is not always useful since line breaks are ignored that way, and wildcards aren’t useful when implementing with strcomp (selection.replace is a more limited option..) – for example, replace words containing @ (or "http" or anything else..) with nothing (word can be first, last, followed by ","/line break/…, etc.)
- Repetitive characters - replacing repetitive characters (such as "ffff") with only two instances of the text. So "ffffff" and "fff" and "ff" are all replaced with "ff". the thing is – it should be generic to apply to all characters ("fffff", "rrrrrrr", "aaa"…)
Thanks!!
Yon