This is an indication that the line has broken prematurely in the editor,
and a piece of vba programming that could benefit from some readability of
its own.
The problem here is that the main body of the code is intended to go on one
line
and that will not fit the editor. The following has been split correctly and
if you have the same line length set in your news editor, should transfer to
your vba editor without problem.
Every line of the main code should have a '_' character. But really the code
needs tidying up and I haven't the time to do that at present.
Sub ReadabilityStatistics()
'Display the Readability Statistics without performing a Spell Check
MsgBox "Counts" & vbCrLf _
& " Words " & vbTab & vbTab & vbTab _
& ActiveDocument.Content.ReadabilityStatistics(1).Value _
& vbCrLf & " Characters " & vbTab & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(2).Value _
& vbCrLf & " Paragraphs " & vbTab & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(3).Value _
& vbCrLf & " Sentences " & vbTab & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(4).Value & _
vbCrLf & vbCrLf & "Averages" & vbCrLf & " Sentences Per Paragraph " _
& vbTab & ActiveDocument.Content.ReadabilityStatistics(5).Value _
& vbCrLf & " Words Per Sentence " & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(6).Value _
& vbCrLf & " Characters Per Word " & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(7).Value _
& vbCrLf & vbCrLf & "Readability " & vbCrLf & _
" Passive Sentences " & vbTab & _
vbTab & ActiveDocument.Content.ReadabilityStatistics(8).Value _
& "%" & vbCrLf & " Flesch Reading Ease " & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(9).Value _
& vbCrLf & " Kincaid Grade Level" & vbTab & _
ActiveDocument.Content.ReadabilityStatistics(10).Value, _
vbOKOnly, " Readability Statistics"
End Sub
See
http://www.gmayor.dsl.pipex.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site
www.gmayor.dsl.pipex.com
Word MVP web site
www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>