Save selected printer with document

C

Cowtoon

I'd like my document to remember which printer it last used. Is this done
with a macro or is there some other way to do this.

I'd appreciate your thoughts. Thanks.
 
H

Helmut Weber

Hi,
I'd like my document to remember which printer it last used. Is this done
with a macro or is there some other way to do this.

You'll need a macro, IMHO.
You may intercept the print commands,
see:
http://word.mvps.org/faqs/macrosvba/InterceptSavePrint.htm

or use an application beforeprint event
see:
http://word.mvps.org/faqs/macrosvba/AppClassEvents.htm

Then you got to decide, where to store the printer name,
e.g. in a document variable, or in a custom document property.
To get the printer name: MsgBox Application.ActivePrinter

To store the printer name successfully, you might
have to set set document's saved property to false,
store the printer name, and save to doc.

And there might be more things to pay attention to.
 

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