![]() |
#1
|
|||
|
|||
![]()
I am trying to replace {MERGEFIELD Address_3} and {MERGEFIELD "Postal"} with {MERGEFIELD City_state_zip}
Can anyone help me with this? |
#2
|
||||
|
||||
![]()
You don't need a macro for that. All you need is Find/Replace!
Ordinarily the field codes for those would look like: { MERGEFIELD Address_3 } and { MERGEFIELD "Postal" } with a single space character before 'MERGEFIELD'. Assuming that is the case, use Alt-F9 to display the field codes, then do a Find/Replace for Find = Address_3 Replace = City_state_zip Find = ^d MERGEFIELD "Postal" Replace = nothing
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Thank you! I feel like quite the idiot, because it is so simple.
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA to find/replace in LINK fields (linked Excel objects) with use of text boxes | Nana | Word VBA | 0 | 03-08-2023 06:24 AM |
![]() |
wardw | Word | 4 | 12-02-2021 08:15 PM |
Macro to keep formatted form fields after mail merge or replace text with formatted form fields | jer85 | Word VBA | 2 | 04-05-2015 10:00 PM |
macro or find/replace | JamesVenhaus | Word | 2 | 02-27-2012 03:34 PM |
Find and Replace Macro - A Better Way | Tribos | Word VBA | 0 | 10-08-2008 03:22 AM |