Hello everyone,
I hope you're all doing well. I am currently working on a Word macro and I am in need of some assistance. My task involves finding and replacing names in a Word document based on a list in Excel. To achieve this, I have been using wildcards with the following setup:
[Find] - Column A: ABC[!Member]
[Replace] - Column B: ABCMember
However, I have encountered an issue when there are punctuation marks following the "ABC" portion, such as "ABC,". In such cases, the replacement replaces "ABC" with "ABCMember" but unintentionally removes the comma.
I would greatly appreciate it if someone could guide me on how to modify the wildcard expression in order to avoid the aforementioned issue. Thank you very much for your kind assistance!
Word Wildcard issues
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- StarLounger
- Posts: 74
- Joined: 18 Oct 2023, 14:48