View Single Post
 
Old 12-10-2020, 03:45 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,159
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The Replace command is working on the entire found component which includes the paragraph mark from the preceding content, hence the preceding paragraph getting the style applied.

There may be another more direct way but the method I would normally use involves three steps:
1. Use your current find and include some unique text in the replace without applying formatting. eg replace with "zxzx\2"
2. Find the unique text and replace it with the style formatting
3. Remove the unique text.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote