Macro to select a non-default printer

M

Madge

I have used the 'record a macro' facility to select a non-default printer and
print the document on screen created Word (Office XP). However, when I view
the code, there is nothing in there relating to the printer selection. Can
anyone tell me how to do this please?
 
J

Jay Freedman

Madge said:
I have used the 'record a macro' facility to select a non-default
printer and print the document on screen created Word (Office XP).
However, when I view the code, there is nothing in there relating to
the printer selection. Can anyone tell me how to do this please?

See http://www.word.mvps.org/FAQs/MacrosVBA/ChangeCurPrinter.htm.

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

Madge

Sorry, I've found the answer to this - in part at least - on another post
which I hadn't found in my first trawl. However, if I've printed on my
non-default printer and then want to print the next document on my default
printer, do I have to use another, identical, macro to switch back, as the
non-default printer stays 'selected' until I exit Word otherwise?
 
M

Madge

Thanks Jay, but please see my second post in this thread - which this
document doesn't answer.
 
J

Jay Freedman

Yes, that would be necessary.

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

Doug Robbins - Word MVP

You could combine it all into the one macro that selected the printer that
you want to be used for the document, printed out the document and then
changed the printer back to the default printer.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
M

Madge

Thank you to all who responded. I have used Graham's code as it is short and
sweet and missed out all the additional stuff which the 'record a new macro'
button incorporates!
 

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