Share via

Word VBA: Intercepting print command

Anonymous
2011-09-14T21:46:21+00:00

I want to change the default printer but only in Word 2010.

I assume that the best way to do that is to intercept the commands before (to temporarily change the printer) and after (to reset the default printer) printing.

How do I take actions before and after printing?

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Charles Kenyon 167.7K Reputation points Volunteer Moderator
2011-09-14T23:33:59+00:00

Changing the printer in Word changes it for the rest of the Word session. It does not change the default printer in Windows. If you want to just change it in Word, how about an AutoExec macro in normal.dotm or an Add-In.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2011-09-14T22:17:41+00:00

You will want to do it with a macro. This tip has a macro to do just that.

1.1  Temporarily Changing the Printer in a Macro

**http://word.tips.net/Pages/T000318\_Temporarily\_Changing\_the\_Printer\_in\_a\_Macro.html******

1.1.1  Working with Multiple Printers

**http://word.tips.net/T001155\_Working\_with\_Multiple\_Printers.html**

**Summary:**Word does not keep printer information associated with documents. You can define a macro for each printer you use and put buttons for the macros on a toolbar for easy access to all of the printers. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Working with Multiple Printers.)

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful