Wild characters in Find and Replace

T

Trish

I used to be able to do this in the prior version... not sure how to do it in
my new version. If I have a doc with a list of items that all have a : after
them and the first written character after the two spaces following the colon
is a small letter and I want to replace them with a capital letter, how do I
do that? In the prior version, I used Find :^$ and then "highlight all" and
then used the change case function. In this version, "highlight all" is not
an option. Please advise.
 
M

macropod

Hi Trish,

Once you've input the Find string, click on 'Reading Highlight' and choose 'Highlight All'.
 
D

Doug Robbins - Word MVP

Use a macro containing the following code:

Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
Do While .Execute(FindText:=": [a-z]", Forward:=True, _
MatchWildcards:=True, Wrap:=wdFindContinue, MatchCase:=False) = True
Selection.Text = Left(Selection.Text, 3) &
UCase(Right(Selection.Text, 1))
Loop
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top