A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I use line numbering but not have it show on print?



 
 
Thread Tools Display Modes
  #1  
Old December 3rd, 2009, 04:11 PM posted to microsoft.public.word.pagelayout
Meinert
external usenet poster
 
Posts: 1
Default 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  
Old December 3rd, 2009, 05:31 PM posted to microsoft.public.word.pagelayout
Jay Freedman
external usenet poster
 
Posts: 9,488
Default 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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.