
Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
That's great (thank you). If you could show me the additional code for
running this code over the entire document, I'd be all set. thanks
again.
Bruce
PS Any suggestions for where to learn more about programming Word?
On Mar 22, 6:19 pm, "Doug Robbins - Word MVP"
<d...@REMOVECAPSmvps.org> wrote:
> The following displays the first word of each sentence in the paragraph in
> which the selection is located if the sentence contains more than 40 words.
[quoted text clipped - 55 lines]
>
> > Thanks!
Doug Robbins - Word MVP - 24 Mar 2008 20:58 GMT
If you had asked for that, I would have given it to you. It is simply
Dim asentence As Range
For Each asentence In ActiveDocument.Range.Sentences
If asentence.Words.Count > 40 Then
MsgBox asentence.Words(1)
End If
Next

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> That's great (thank you). If you could show me the additional code for
> running this code over the entire document, I'd be all set. thanks
[quoted text clipped - 67 lines]
>>
>> > Thanks!
BHW - 24 Mar 2008 22:42 GMT
Perfect! Thanks.
Bruce
On Mar 24, 3:58 pm, "Doug Robbins - Word MVP"
<d...@REMOVECAPSmvps.org> wrote:
> If you had asked for that, I would have given it to you. It is simply
>
[quoted text clipped - 88 lines]
>
> >> > Thanks!