Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/254804

From BetaArchive Wiki
Knowledge Base


PPT2000: Cannot Set NumberOfCopies and Collate Properties

Article ID: 254804

Article Last Modified on 10/11/2006



APPLIES TO

  • Microsoft PowerPoint 2000 Standard Edition



This article was previously published under Q254804

SYMPTOMS

In a Microsoft Visual Basic for Applications (VBA) macro, if you try to set the number of copies by using the NumberOfCopies property of PrintOptions, only one copy is printed.

-or-

If you try to set the Collate property of PrintOptions to False, PowerPoint still collates the output of multiple copies.

For example the following code fragment only prints one copy:

   ActivePresentation.PrintOptions.NumberOfCopies = 2
   ActivePresentation.PrintOut
                

In addition, the Help topic for PowerPoint VBA for the NumberOfCopies and Collate properties of PrintOptions have incorrect examples showing how to use them.

CAUSE

By default, the PrintOut method sets Collate to True and NumberOfCopies to 1 if they are not specified when the method is called. This overrides the settings of the two methods of PrintOptions.

RESOLUTION

To set the number of copies and/or collation of your printed presentation, use the Copies:= and the Collate:= arguments for the PrintOut method of ActivePresentation, for example:

   ActivePresentation.PrintOut Copies:= 2, Collate:=msoFalse
                

The line of code above prints two copies of the active presentation, and does not collate the output.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.


Additional query words: pp9 pp2k ppt9 vba macro record sample

Keywords: kbbug kbdtacode kbpending KB254804