Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2014, 06:05 AM
NobodysPerfect NobodysPerfect is offline Exclude style(s) from search & replace Windows 7 64bit Exclude style(s) from search & replace Office 2010 32bit
Competent Performer
Exclude style(s) from search & replace
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default Exclude style(s) from search & replace

Hi,

I'd like to perfom some wildcard search & replace within all used styles except the heading styles (1-4). Can I use some pattern to exclude a style / styles from a wildcard search?

If not: the alternative is alway a VBA procedure...



Thanks
NP
Reply With Quote
  #2  
Old 03-19-2014, 05:43 PM
macropod's Avatar
macropod macropod is offline Exclude style(s) from search & replace Windows 7 32bit Exclude style(s) from search & replace Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,862
macropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud of
Default

That's not possible via Find/Replace, even in VBA. What a VBA routine can do, though, is test each found string to establish what Style it's in before proceeding.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 03-20-2014, 02:29 AM
NobodysPerfect NobodysPerfect is offline Exclude style(s) from search & replace Windows 7 64bit Exclude style(s) from search & replace Office 2010 32bit
Competent Performer
Exclude style(s) from search & replace
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default

Thanks for your reply, Paul.

Quote:
What a VBA routine can do, though, is test each found string to establish what Style it's in before proceeding.
That's exactly what my procedure does, but I'm always looking for non-VBA solutions for those who do not want (or are not allowed) to use macros.

NP
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude style(s) from search & replace best way to use search/replace wildcards in this scenario? dylansmith PowerPoint 2 07-13-2019 07:06 AM
Exclude style(s) from search & replace search and replace dirkoo Word VBA 2 08-14-2013 11:25 AM
Exclude style(s) from search & replace Odd search and replace query Rabski Word 1 11-13-2012 02:25 PM
Search Replace Copy dblack7211 Word 0 05-05-2010 01:19 PM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM


All times are GMT -7. The time now is 07:21 AM.


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