require printing current page only

  • Thread starter Thread starter Bill Mitchell
  • Start date Start date
B

Bill Mitchell

Thanks for the help I've gotten in preparing this manual, now I have one
last problem.
The manual is just shy of 900 pages but my users REFUSE to take the time to
learn how to print out just one section or an individual page, so they just
hit print and end up canceling the job after when they realize that the
whole thing is going to be printed.

How can I set the document properties to only allow the current page or
current section to be printed?
Or would it have to be done via a macro that I could assign to a "fake"
print button on the toolbar?
 
Hi Bill

If you use the following code, then the File > Print dialog box will open up
with the Page Range set to "Pages". Users will have to make some kind of
choice about what to print.

If you're not sure what to do with the macro code, see
http://www.gmayor.com/installing_macro.htm

You have two main options for *where* to store this code.

If your manual has been created from a template specific to that document,
then put the code in that template. Then it will only apply when users
choose to print documents created from that template.

Alternatively, create a new template (File > New, and choose to create a new
Template), put the code in that template, and save it in the Word Startup
folder (the folder given at Tools > Options > File Locations > StartUp). In
this case, the code will apply to all Word documents that are open.


Sub FilePrint()

On Error Resume Next

With Dialogs(wdDialogFilePrint)
.Range = 3
.Show
End With

On Error GoTo 0

End Sub


Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
The following simple macro will print the current page:

Sub PrintPage()
ActiveDocument.PrintOut Range:=wdPrintCurrentPage
End Sub

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

How you force users to use this is another matter. You will have little
control (or should have) what toolbars users display. Best bet may be to use
a global add-in available to all containing the macro and put a custom
toolbar in the document or its template containing the button with the
command to print the page attached.

On reflection if the document is based on its own template, you could
intercept the toolbar print button which is causing the problem
by saving the following in that template

Sub FilePrintDefault()
Application.PrintOut Range:=wdPrintCurrentPage
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
The macro could technically be stored in the document itself, but users
would (at best) get a macro warning on opening (and might disable the
macro); at worst the macro would be silently disabled.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Bill Mitchell said:
Thanks for the help I've gotten in preparing this manual, now I have one
last problem.
The manual is just shy of 900 pages but my users REFUSE to take the time to
learn how to print out just one section or an individual page, so they just
hit print and end up canceling the job after when they realize that the
whole thing is going to be printed.

How can I set the document properties to only allow the current page or
current section to be printed?
Or would it have to be done via a macro that I could assign to a "fake"
print button on the toolbar?

A simple solution is to right-click toolbar - select Customize (shudder - we
spell such words "...ise" - when Australian English is the default language,
why don't they fix the spelling of toolbar buttons also?). But I digress.
Select Customise; click and drag the Print button off the toolbar and drag
to its place the File / "Print ..." button (including the 3 dots). When
that is clicked, the Print dialogue appears allowing selection to be made.

Pemo
 
Thanks,
I already have a template specific toolbar for that and four other
documents. I'll give you suggestion about redirecting the default print
button a try.

Bill
 
Thanks to both for the suggestion.
I would store it in the template since it is specific to that and four other
documents, each with the same issue, and I already have a custom toolbar for
it.

Bill
 
I wish that it were that easy. My people would still just hit print without
taking the time to set a page range.

Bill
 
Back
Top