How to set up a section in a template to not print

L

Lyn

I have set up a template with instructions on the first page of the document
(as a section). The template is protected for filling in forms. Most users
will just hit the print button instead of selecting the appropriate section
to print. Thus, the instruction page is printed every time. Is there a way
to set up the property of the section where I have the instructions so that
when the user hits the print button, the instruction section will not print?
 
S

Stefan Blom

You can do this by intercepting the FilePrint and FilePrintDefault commands
with macros.
 
L

Lyn

Could you please let me know how to do that step by step since I am not that
macro savvy.

Thanks,
 
S

Stefan Blom

Well, in the simple case where the document has two sections, and you only
want to print the second, use these macros (in the attached template):

Sub FilePrint()
ActiveDocument.PrintOut Range:=wdPrintRangeOfPages, _
Pages:="s2", Copies:=1, PrintToFile:=False, _
Item:=wdPrintDocumentContent

End Sub

Sub FilePrintDefault()
ActiveDocument.PrintOut Range:=wdPrintRangeOfPages, _
Pages:="s2", Copies:=1, PrintToFile:=False, _
Item:=wdPrintDocumentContent

End Sub

See http://www.gmayor.com/installing_macro.htm.

The example macros assume that you want to print to the default printer.

--
Stefan Blom
Microsoft Word MVP


in message
 
S

Stefan Blom

You are welcome--and thank you for the feedback.

--
Stefan Blom
Microsoft Word MVP


in message
 

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