PPT: Unable to Change the ActivePrinter Property With VBA (166818)



The information in this article applies to:

  • Microsoft PowerPoint 98 Macintosh Edition
  • Microsoft PowerPoint 97 for Windows

This article was previously published under Q166818

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.

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