View Single Post
 
Old 01-05-2014, 07:32 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Something like this provided each cc line constitutes a singe paragraph. Change oDoc to represent your objDoc.

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oDoc As Word.Document
Dim oRng As Word.Range
  Set oRng = ActiveDocument.Range
  With oRng.Find
    .Text = "cc"
    While .Execute
      If oRng.Start = oRng.Paragraphs(1).Range.Start Then
        With oRng
          .MoveEnd wdParagraph
          With .Font
            .Name = "Times New Roman"
            .Size = 12
          End With
          .Collapse wdCollapseEnd
        End With
      End If
    Wend
  End With
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote