View Single Post
 
Old 09-19-2016, 06:44 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit 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