Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-19-2016, 06:44 PM
macropod's Avatar
macropod macropod is offline How to search for unclosed brackets Windows 7 64bit How to search for unclosed brackets Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The wildcard Find code really only works with what should be one set of parentheses/brackets per paragraph, finding at any that has one parenthesis/bracket but not its counterpart.

The macro is more flexible and works on a paragraph-by-paragraph basis, comparing the number of ( with the number of ) and comparing the number of [ with the number of ] in the same paragraph. It reports & exits if it finds one where the numbers aren't the same, leaving the problem paragraph selected.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook leaves 2-3 unclosed tasks Jennifer Murphy Outlook 0 08-24-2014 07:08 PM
Gray square brackets waldux Word 8 09-25-2013 04:14 PM
Finding contents of brackets return2300 Word VBA 0 09-04-2013 11:04 AM
brackets citation uncung Word 1 07-13-2011 01:39 PM
Brackets Issue... DarkJudge1 Outlook 0 07-06-2010 05:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:12 PM.


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