![]() |
|
#5
|
||||
|
||||
|
I could have simplified the Find expression, but I wanted to minimise the risk of false matches. For example:
Find = ([0-9]*Expense [! ]@ )([! ]@ )([! ]{1,})[!^13]@^13(*)^13(*)^13(*)^13*^13 The OP could even record either of these as a macro and end up with code that processes either the first instance stating from the insertion point or an entire document. As coded, your macro: • does no validation that what is selected contains the right kind of data; • requires the entire range to be selected (will fail if less than the required range is selected); and • will only work with the first instance and is liable to blat anything extra that gets selected but shouldn't be processed, (just me being picky)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formatting contents after Tab of continuous lines or formatting specific area of word | pawii | Word | 1 | 05-12-2014 05:24 AM |
Formatting: Paragraph /line spacing problem
|
caesib | Word | 6 | 02-07-2014 12:37 AM |
Narrow Paragraph to Wide Paragraph HELP
|
icloudy | Word | 1 | 12-09-2012 03:49 PM |
word won't let me put more than one paragraph per page
|
bethtop | Word | 1 | 02-07-2012 12:21 PM |
[Word 2007] How to hyperlink directly another word file chapter/paragraph/bookmark?
|
LeeFX | Word | 4 | 05-05-2011 05:53 PM |