Meinert said:
I do not want the line numbers to show in printed material.
Go into the Page Setup dialog and turn off line numbering before you print.
If you want it, turn the numbering on again afterward.
To automate this, install the following macros in your Normal template (see
http://www.gmayor.com/installing_macro.htm if needed):
Sub FilePrint()
' intercepts built-in File > Print or Ctrl+P
' and prints without line numbering
Dim userLineNum As Boolean
With ActiveDocument.PageSetup.LineNumbering
userLineNum = .Active
.Active = False
Dialogs(wdDialogFilePrint).Show
.Active = userLineNum
End With
End Sub
Sub FilePrintDefault()
' intercepts built-in Print toolbar button
' and prints without line numbering
Dim userLineNum As Boolean
With ActiveDocument.PageSetup.LineNumbering
userLineNum = .Active
.Active = False
ActiveDocument.PrintOut Background:=False
.Active = userLineNum
End With
End Sub
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.