Select printer by Word 2007 template?

N

Nigel Molesworth

Can anyone suggest how I can select a printer (and possibly a tray from that
printer) when a particular Word 2007 template is opened? I want to do this
without altering the system default printer.
 
N

Nigel Molesworth

Can anyone suggest how I can select a printer (and possibly a tray from that
printer) when a particular Word 2007 template is opened?

Thanks for the replies. Is there a StartUp method I can use to run the code
when the template opens?
 
S

Suzanne S. Barnhill

If you name the macro AutoNew (or make it part of an existing AutoNew macro
saved in the template), it will run when you create a new document based on
the template, which I imagine is what you mean. An AutoOpen macro would run
when the template is opened, but ordinarily you wouldn't be opening the
template.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

You could do that as indicated by Suzanne, but it would be better to change
the printer at print time then back to the original printer to avoid
affecting other documents.

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

An AutoClose macro could reset the printer. But I suppose a specific
FilePrint and/or FilePrintDefault macro stored in the template could
accomplish what you suggest without requiring users to run a specific macro
in order to print.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
J

Jay Freedman

Selecting the printer in the FilePrint and FilePrintDefault macros in the
specific template is indeed the preferred method. The code to do that, without
affecting the default printer setting, is in
http://www.word.mvps.org/FAQs/MacrosVBA/ChangeCurPrinter.htm. Explanation of the
two print macros is in
http://www.word.mvps.org/FAQs/MacrosVBA/InterceptSavePrint.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all
may benefit.
 

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