J
jainagirl
Hi,
How do I make this MS Word macro apply to an entire document, rather than
just a paragraph? I need it to count the number of sentences in the whole
document. I have only basic knowledge of macros and the editor, etc. Also, is
it possible to count the number of paragraphs by cloning this macro and
changing it to do that? Using Word 97. TIA. Jainagirl
Public Sub NumberOfSentences()
Dim sNumberOfSentences As Long
sNumberOfSentences = Selection.Paragraphs(1).Range.Sentences.Count
MsgBox sNumberOfSentences & " Sentences", _
vbInformation, "Number of Sentences"
End Sub
How do I make this MS Word macro apply to an entire document, rather than
just a paragraph? I need it to count the number of sentences in the whole
document. I have only basic knowledge of macros and the editor, etc. Also, is
it possible to count the number of paragraphs by cloning this macro and
changing it to do that? Using Word 97. TIA. Jainagirl
Public Sub NumberOfSentences()
Dim sNumberOfSentences As Long
sNumberOfSentences = Selection.Paragraphs(1).Range.Sentences.Count
MsgBox sNumberOfSentences & " Sentences", _
vbInformation, "Number of Sentences"
End Sub