![]() |
#1
|
|||
|
|||
![]()
Hi,
I've tried to figure this out using various guides, but can't get it right, even though I know it should be simple! I want to run a find-replace that finds: Quote:
Quote:
Also, would it be straightforward to have a macro do this? I perform this find-replace quite frequently. Many thanks in advance, Paul |
#2
|
||||
|
||||
![]()
You can do that with a wildcard Find/Replace, where:
Find = any one of products ([0-9]@)-[0-9]@> Replace = product \1 You can use the macro recorder to record the above as a macro - in this case the result is about as efficient as a hand-written macro.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Thank you - that works well. However, it didn't work the first time I ran it - which I discovered was because I had track changes on. The replaced text said "Xproduct ," (instead of "product X, "). Also note the space before the comma, instead of after the comma. If I display insertions and deletions, it looks like this: "any onXe of claims X-Yclaim ," (where strikethrough marks deletions, and underline marks insertions).
It works fine with track changes off, but I would ideally want to run this find-replace with track changes on. Is there any way to remedy this problem? Paul |
#4
|
||||
|
||||
![]()
Unfortunately, that just how things are with Track Changes. Anything more sophisticated would require a macro.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
d4okeefe | Word VBA | 18 | 06-30-2022 11:35 PM |
Macro to find coloured text and replace with form-field/formtext containing that text | tarktran | Word VBA | 1 | 11-26-2014 08:12 AM |
![]() |
QA_Compliance_Advisor | Word VBA | 11 | 09-23-2014 04:40 AM |
![]() |
dmarie123 | Word VBA | 10 | 09-18-2014 01:03 AM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |