View Single Post
 
Old 12-13-2012, 01:46 AM
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

That suggests you're not using the Find code as posted. As I said, it works for me. Let me explain what the '\([!\)]@[0-9]{4}*\)' represents:
1. '\(' - the string must begin with an opening parenthesis
2. '[!\)]@' - after the opening parenthesis must be a string of any length consisting of characters other than a closing parenthesis. This prevents a range like '(AA) ... (Kasl, 1992)' being found.
3. '(]@[0-9]{4}' - after the string of any length consisting of characters other than a closing parenthesis, there must be a 4-digit number. This prevents a range like '(AA)' being found.
4. '*\)' - after the 4-digit number can be a string of any length terminating in a closing parenthesis.

You could try adding some redundancy:
Find = \([!\(\)]@[0-9]{4}*\)
The effect of this on the above explanation is:
2. '[!\(\)]@' - after the opening parenthesis must be a string of any length consisting of characters other than an opening or closing parenthesis.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote