#1
|
|||
|
|||
Is there a way to find CAPITALIZED words in a doc?
I want to turn CAPITALIZED words into proper SMALL CAPS. Is there a script or macro that can search a doc for words that have all capital letters and are not tagged "all caps"? |
#2
|
||||
|
||||
Hi Bobsomite,
You can use a wildcard Find/Replace, where: Find = <[A-Z][a-z]@> Replace = ^& and the Find font format has the 'All Caps' option unchecked and the Replace font format has the 'Small Caps' option checked.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
That is the best damn thing I've learned all week. Eventually I got around to digging into the Microsoft Help, but what really helps is seeing your syntax. After a little tinkering with it, I was able to pare it down to words 3 letters or greater. Very cool, thanks again!
|
#4
|
||||
|
||||
Quote:
Find = <[A-Z][a-z]{2,}>
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Wow!
You just saved me a couple of hours. Thank you!!!! |
#6
|
|||
|
|||
Wow
Where can I learn more about the find wildcard feature? Specifically the coding like: <[A-Z][a-z]@>
|
#7
|
|||
|
|||
Word wildcards are at this URL:
http://office.microsoft.com/en-us/wo...005189433.aspx Don't forget to click the More button and check 'use wildcards' . Below is the string I use to find acronyms. It also finds acronyms that include digits-- the problem being that it also stops on plain old numbers. See if it does you any good. [ETAOINSRHDLUCMFYWGPBVKXQJZ1234567890_-]{2,} |
#8
|
||||
|
||||
Quote:
[A-Z0-9_-]{2,} or, if your acronyms always start with a letter: [A-Z][A-Z0-9_-]{1,} As for the numbers issue, if you mean it doesn't find complete numbers with thousands separators & decimal points, that's because neither of those is provided for in your Find expression. Problem is, though, that if you do so, it'll also pick up commas and periods.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
Thanks. I got in the habit of putting the letters in order of frequency, in earlier times when computer speed was an issue. Yours is nice and compact. I added "\." to the beginning of the search string and now it finds things like D4S-1.3.
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and highlight multiple words in MS Word document | AtaLoss | Word VBA | 37 | 09-22-2021 12:04 PM |
Can you check the "find whole words only" box when using characters? | pimpong | Word | 6 | 02-06-2012 06:56 PM |
Is there a way to use "find/replace" to find italics words? | slayda | Word | 3 | 09-14-2011 02:16 PM |
Find & Replace words with "/" prefix & suffix | tollanarama | Word | 4 | 01-25-2011 02:19 AM |
FInd recurring words in Word 2003 | NJ007 | Word | 4 | 01-25-2010 03:11 PM |