Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
How do I use line numbering but not have it show on print?
I do not want the line numbers to show in printed material.
|
#2
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
How do I use line numbering but not have it show on print?
Meinert wrote:
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 FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Line numbering by 5s pages 1-15, then discontinue line numbering 1 | Microsoft Word Help | |||
Gridlines won't print or show in preview but show on screen? | Page Layout | |||
Rulers in Print View don't show inches - shows line numbers? | Page Layout | |||
how do I show line numbering in Word? | Microsoft Word Help | |||
page numbering in footers show on screen & don't print on page | Microsoft Word Help |