![]() |
|
#10
|
||||
|
||||
|
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] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find & replace with vba | goodhouse | PowerPoint | 2 | 06-10-2012 12:10 AM |
Bad view when using Find and Find & Replace - Word places found string on top line
|
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Is there a way to use "find/replace" to find italics words?
|
slayda | Word | 3 | 09-14-2011 02:16 PM |
Find/Replace Brackets Problem
|
fatso | Word | 2 | 08-04-2011 11:34 AM |
Help with find and replace or query and replace
|
shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |