Help me print file statistics!

M

Mark Trevail

I am currently designing a template in Word 97 that our
typists use as our main letter template. Can I get Word
to print out the Readibility statistics so that this can
be passed to the person who dictated the letter, when the
letter is being printed out?
 
J

Jay Freedman

Mark said:
I am currently designing a template in Word 97 that our
typists use as our main letter template. Can I get Word
to print out the Readibility statistics so that this can
be passed to the person who dictated the letter, when the
letter is being printed out?

Hi, Mark,

There isn't any built-in way to print the statistics, but you can add this
set of macros to your template to do it.

Private Sub PrintStatistics()
Dim TempDoc As Document
Dim Stats As String
Dim rs As ReadabilityStatistic

Stats = ActiveDocument.FullName & vbCr
For Each rs In ActiveDocument.ReadabilityStatistics
Stats = Stats & vbCr & rs.Name & vbTab & rs.Value
Next rs

Set TempDoc = Documents.Add
With TempDoc
.Range.Text = Stats
.PrintOut Background:=False
.Close SaveChanges:=wdDoNotSaveChanges
End With
End Sub

Public Sub FilePrint()
Dialogs(wdDialogFilePrint).Show
PrintStatistics
End Sub

Public Sub FilePrintDefault()
ActiveDocument.PrintOut Background:=False
PrintStatistics
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top