Re: How to select in whole document all first words in sentences? by avkokin
avkokin
Sat Oct 13 05:29:43 PDT 2007
On 13 , 16:01, Helmut Weber <nbhymsjxd...@mailinator.com> wrote:
> Hi avkokin,
>
> The so called discontiguous selection
> is only poorly supported by VBA,
> or not supported at all.
>
> But you don't have to select anything.
>
> Sub Test455091()
> Dim oPrg As Paragraph
> For Each oPrg In ActiveDocument.Paragraphs
> With oPrg.Range.Words(1)
> .Font.Color =3D wdColorRed
> .Font.Bold =3D True
> End With
> Next
> End Sub
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
Helmut, danke sch=F6n.
But it select onlu first words in the paragraphs. How I can select
first words in each sentences?