Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-10-2020, 03:45 PM
Guessed's Avatar
Guessed Guessed is offline Applying styles via wildcard search not working as expected Windows 10 Applying styles via wildcard search not working as expected Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying styles via wildcard search not working as expected Tabbing not working as expected? PhoenixJames Word 2 08-30-2019 01:52 PM
Styles and not applying correctly GinnyBcore Word 1 10-02-2018 03:18 PM
Creating bullet animations not working as expected stpwaddell PowerPoint 1 01-04-2017 03:10 AM
Applying styles dynamically? arkofcovenant Mail Merge 1 05-08-2015 06:02 AM
Wildcard search help. Kempston Word 0 11-13-2009 03:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft