![]() |
|
#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] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find text, format part of text in italic
|
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 |
Created VBA to Find and Replace in Body, Header and Footer with Highlighting the replacement text
|
QA_Compliance_Advisor | Word VBA | 11 | 09-23-2014 04:40 AM |
Replace text with Quick Part using VBA
|
dmarie123 | Word VBA | 10 | 09-18-2014 01:03 AM |
Bad view when using Find and Find & Replace - Word places found string on top line
|
paulkaye | Word | 4 | 12-06-2011 11:05 PM |