Why do you need a macro? A wildcard Find/Replace can do the same job, where:
Find = xxx(*)yyy
Replace = \1
and the replacement attributes have the desired highlighting set.
Note: the above even deletes the markers as part of the process. If you don't want that, change \1 to ^&.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|