Microsoft KB Archive/118479

{|
 * width="100%"|

How to Change the Default Number of Copies in File Print

 * }

Q118479

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
 * Microsoft Word for Windows, version 7.0
 * Microsoft Word for Windows NT, version 6.0

-

SUMMARY
This article describes how to change the default number of copies in the Print dialog box. (To locate this option, choose Print from the File menu.)

MORE INFORMATION
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

The following macro will change the default number of copies to print to 3. You must name the macro "FilePrint" because it replaces the Word command FilePrint.

Sub MAIN

on error goto out Dim dlg As FilePrint GetCurValues dlg dlg.NumCopies = 3 Dialog dlg FilePrint dlg out:

End Sub You can specify a number other than 3 on the following line

  dlg.numcopies = x where "x" should be replaced with the desired number of copies.

Additional query words: winword2 2.00a 2.00a-CD 2.00b 2.00c word7 word6 winword 6.00c word95 6.00a fileprint copies number print

Keywords :

Issue type :

Technology :