View Single Post
 
Old 01-28-2015, 07:20 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Guessed View Post
This would be much slicker if you could use the range directly and didn't need the selection object but I don't think extend works for ranges.
how about:
Code:
Dim oPar As Paragraph
  For Each oPar In oRng.Paragraphs
    With oPar.Range
      .Collapse Direction:=wdCollapseStart
      .MoveEndUntil " ", wdForward
      .Font.Bold = True
    End With
  Next oPar
Much more efficient than working with selections, too.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote