Microsoft KB Archive/222706

From BetaArchive Wiki
Knowledge Base


PPT2000: Unable to Change the ActivePrinter Property With VBA

Article ID: 222706

Article Last Modified on 10/11/2006



APPLIES TO

  • Microsoft PowerPoint 2000 Standard Edition



This article was previously published under Q222706


SYMPTOMS

When you try to change the ActivePrinter property using Microsoft Visual Basic for Applications code, you receive the following error message:

Run-Time error '450'
Wrong number of arguments or invalid property assignment

If you click Debug, the Visual Basic Editor highlights the line with which you are trying to assign a new printer.

CAUSE

The ActivePrinter property is read-only in the PowerPoint object library and cannot be changed programmatically.

REFERENCES

For more information about how to use the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base:

212536 OFF2000: How to Run Sample Code from Knowledge Base Articles



Additional query words: 9.00 ppt9 vba vbe ppt2k powerpt vba2k ppt9.0 ppt2000 program programming programmatically

Keywords: kbcode kberrmsg kbprb kbprogramming KB222706