View Single Post
 
Old 03-28-2014, 02:30 PM
newbieX newbieX is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Mar 2014
Posts: 6
newbieX is on a distinguished road
Default Select section of text and change text

I have a word document that I want to select the entire text and reformat to Arial 10 except for a small section that will be Arial 8. I know the code for selecting all, but cannot seem to be able to just select the following text:

This chart is for reference only
Please do not distribute results
Date created 1/1/2013

Code I have for selecting all text is as follows:

Code:
Sub SelectAllText()

    Selection.WholeStory
    Selection.Font.Name = "Arial"
    Selection.Font.Size = 10
    Selection.Font.Color = wdColorAutomatic
    Selection.Collapse
    Selection.Find.Text = "This as a test"
    

End Sub
Suggestions as to how to select just the three sentences?

Many thanks in advance.
Reply With Quote