PPT2000: Unable to Change the ActivePrinter Property With VBA (222706)



The information in this article applies to:

  • Microsoft PowerPoint 2000

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


Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbcode kberrmsg kbprb kbProgramming KB222706