Capital letter after a number then full stop

J

Jack

Can anyone hlep with this unusual query please. I want every time i type a
number followed by a full stop then a space for the next letter to be a
capital letter i.e. the start of a new sentence. It seems Word is seeing the
full stop as a decimal and not capitalising after it like it would do if the
numbers were letters. Is there a simple macro that i can run to correct this?
Any ideas???
 
G

Greg Maxey

Jack,

Try:

Sub Test()
Dim oRng As Word.Range
Set oRng = ActiveDocument.Range
With oRng.Find
.MatchWildcards = True
.Text = "[0-9]. [a-z]"
While .Execute
oRng.Text = UCase(oRng.Text)
oRng.Collapse wdCollapseEnd
Wend
End With
End Sub
 

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